Skip to content

Commit

Permalink
fix string compare
Browse files Browse the repository at this point in the history
  • Loading branch information
butterunderflow committed Aug 23, 2024
1 parent f5415e8 commit 34862ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/src/fun_rt_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ bool ff_is_equal_aux(const ff_obj_t& x, const ff_obj_t& y) {
return ff_get_int(x) == ff_get_int(y);
}
if (x.tag == FF_STR_TAG) {
return strcmp((const char*)x.data, (const char*)y.data);
return 0 == strcmp((const char*)x.data, (const char*)y.data);
}
if (x.tag == FF_TUPLE_TAG) {
const auto& x_1 = *reinterpret_cast<const ff_tuple_t*>(x.data);
Expand Down

0 comments on commit 34862ee

Please sign in to comment.