We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ebd329 commit cbf5c00Copy full SHA for cbf5c00
1 file changed
compiler+runtime/src/cpp/jank/runtime/core/math.cpp
@@ -718,7 +718,7 @@ namespace jank::runtime
718
bool is_odd(object_ref const l)
719
{
720
return visit_type<obj::integer>(
721
- [=](auto const typed_l) -> bool { return typed_l->data % 2 == 1; },
+ [=](auto const typed_l) -> bool { return typed_l->data % 2 != 0; },
722
l);
723
}
724
0 commit comments