Use static_cast in MEM_CP_GET_NON_NULL_POINTER.

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
Ruben Ayrapetyan
2015-09-07 18:41:40 +03:00
parent 443673fc5d
commit 7481fb606f
+1 -1
View File
@@ -84,7 +84,7 @@ typedef void (*mem_try_give_memory_back_callback_t) (mem_try_give_memory_back_se
* Get value of pointer from specified non-null compressed pointer value
*/
#define MEM_CP_GET_NON_NULL_POINTER(type, cp_value) \
((type *) mem_decompress_pointer (cp_value))
(static_cast<type *> (mem_decompress_pointer (cp_value)))
/**
* Get value of pointer from specified compressed pointer value