Skip to content

Commit

Permalink
fix: expressions of different signedness are casted
Browse files Browse the repository at this point in the history
  • Loading branch information
alandefreitas committed Jun 29, 2023
1 parent 8ccb12a commit 66b3d3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/Support/JavaScript.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ domArray_push(
{
auto i = duk_get_int(A, 1);
duk_pop_n(A, duk_get_top(A));
if(i < arr.size())
if(i < static_cast<duk_int_t>(arr.size()))
domValue_push(A, arr.at(i));
else
duk_push_undefined(A);
Expand Down

0 comments on commit 66b3d3b

Please sign in to comment.