Fix conversion warnings (#2126)
NuttX and artik053 build - compiling with strict Werror=conversion - fail when jerry-debugger option is enabled. This patch based on #2007, because most of them are fixed earlier within that PR, but it was closed before the land. Credit: Piotr Marcinkiewicz p.marcinkiew@samsung.com JerryScript-DCO-1.0-Signed-off-by: Robert Sipka rsipka.uszeged@partner.samsung.com
This commit is contained in:
committed by
Zoltan Herczeg
parent
10f777689f
commit
bd574956e3
@@ -110,6 +110,11 @@
|
||||
jmem_heap_free_block ((void *) utf8_ptr, utf8_str_size); \
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert boolean to bitfield value.
|
||||
*/
|
||||
#define ECMA_BOOL_TO_BITFIELD(x) ((x) ? 1 : 0)
|
||||
|
||||
/* ecma-helpers-value.c */
|
||||
bool ecma_is_value_direct (ecma_value_t value) __attr_const___;
|
||||
bool ecma_is_value_simple (ecma_value_t value) __attr_const___;
|
||||
|
||||
Reference in New Issue
Block a user