Janitorial: add missing integer cast to remove compiler warning. (#1720)

JerryScript-DCO-1.0-Signed-off-by: Tomasz Wozniak [email protected]
This commit is contained in:
Tomasz Wozniak authored and yichoi committed 2017-04-17 11:30:18 +09:00
1 parent b4a3985560
commit 42206d27c8
1 file changed
+1 -1
+1 -1
View File
@@ -64,7 +64,7 @@ vm_op_get_value (ecma_value_t object, /**< base object */
#ifdef JERRY_CPOINTER_32_BIT
bool limit_check = (int_value >= 0);
#else /* !JERRY_CPOINTER_32_BIT */
bool limit_check = (int_value >= 0 && int_value < (UINT16_MAX + 1));
bool limit_check = (int_value >= 0 && int_value < (ecma_integer_value_t) (UINT16_MAX + 1));
#endif
if (limit_check)