diff options
-rw-r--r-- | hash.c | 5 | ||||
-rw-r--r-- | struct.c | 1 |
2 files changed, 1 insertions, 5 deletions
@@ -775,14 +775,11 @@ static ucnum hash_hash_op(val obj, int *count, ucnum seed) } out += equal_hash(h->userdata, count, seed); - out &= NUM_MAX; us_hash_iter_init(&hi, obj); - while ((*count)-- > 0 && (cell = hash_iter_next(&hi)) != nil) { + while ((*count)-- > 0 && (cell = hash_iter_next(&hi)) != nil) out += equal_hash(cell, count, seed); - out &= NUM_MAX; - } return out; } @@ -1870,7 +1870,6 @@ static ucnum struct_inst_hash(val obj, int *count, ucnum seed) for (sl = 0; sl < nslots; sl++) { ucnum hash = equal_hash(si->slot[sl], count, seed); out += hash; - out &= NUM_MAX; } return out; |