Skip to content

Commit

Permalink
fix: tuple_hash
Browse files Browse the repository at this point in the history
  • Loading branch information
jacopodl committed May 20, 2024
1 parent 2a30a88 commit 863f856
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion argon/vm/datatype/tuple.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ ArSize tuple_hash(Tuple *self) {
return 0;

for (ArSize i = 0; i < self->length; i++) {
if (Hash(self->objects[i], &hash))
if (!Hash(self->objects[i], &hash))
return 0;

result = 31 * result + hash;
Expand Down

0 comments on commit 863f856

Please sign in to comment.