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:
@@ -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
|
* Get value of pointer from specified non-null compressed pointer value
|
||||||
*/
|
*/
|
||||||
#define MEM_CP_GET_NON_NULL_POINTER(type, cp_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
|
* Get value of pointer from specified compressed pointer value
|
||||||
|
|||||||
Reference in New Issue
Block a user