Skip to content

Commit

Permalink
Fix Clang compilation error when comparing double with int64_t (jerry…
Browse files Browse the repository at this point in the history
…script-project#4531)

JerryScript-DCO-1.0-Signed-off-by: Yonggang Luo luoyonggang@gmail.com
  • Loading branch information
lygstate authored Jan 23, 2021
1 parent 1db0905 commit 8be6aec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit-core/test-to-length.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ main (void)

TEST_ASSERT (!ECMA_IS_VALUE_ERROR (result));
#if ENABLED (JERRY_ESNEXT)
TEST_ASSERT (num == ECMA_NUMBER_MAX_SAFE_INTEGER);
TEST_ASSERT ((ecma_number_t) num == ECMA_NUMBER_MAX_SAFE_INTEGER);
#else /* !ENABLED (JERRY_ESNEXT) */
TEST_ASSERT (num == 0);
#endif /* ENABLED (JERRY_ESNEXT) */
Expand Down

0 comments on commit 8be6aec

Please sign in to comment.