From f8e97c6c024fc381a915b1695b0525ab7da494ad Mon Sep 17 00:00:00 2001 From: Roland Takacs Date: Fri, 5 Feb 2016 15:20:00 +0100 Subject: [PATCH] Use concrete types instead of 'auto'. JerryScript-DCO-1.0-Signed-off-by: Roland Takacs rtakacs.u-szeged@partner.samsung.com --- jerry-core/mem/mem-allocator.h | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/jerry-core/mem/mem-allocator.h b/jerry-core/mem/mem-allocator.h index 65bbab645..50d5fc001 100644 --- a/jerry-core/mem/mem-allocator.h +++ b/jerry-core/mem/mem-allocator.h @@ -99,18 +99,17 @@ typedef void (*mem_try_give_memory_back_callback_t) (mem_try_give_memory_back_se #define MEM_CP_SET_POINTER(cp_value, non_compressed_pointer) \ do \ { \ - auto __temp_pointer = non_compressed_pointer; \ - non_compressed_pointer = __temp_pointer; \ - } while (0); \ - \ - if (unlikely ((non_compressed_pointer) == NULL)) \ - { \ - (cp_value) = MEM_CP_NULL; \ - } \ - else \ - { \ - MEM_CP_SET_NON_NULL_POINTER (cp_value, non_compressed_pointer); \ - } + void *ptr_value = (void *) non_compressed_pointer; \ + \ + if (unlikely ((ptr_value) == NULL)) \ + { \ + (cp_value) = MEM_CP_NULL; \ + } \ + else \ + { \ + MEM_CP_SET_NON_NULL_POINTER (cp_value, ptr_value); \ + } \ + } while (false); extern void mem_init (void); extern void mem_finalize (bool);