mirror of
https://github.com/janet-lang/janet
synced 2026-10-05 23:31:41 +00:00
More improvements to hashing for #889
This commit is contained in:
+1
-1
@@ -324,7 +324,7 @@ int32_t janet_hash(Janet x) {
|
||||
as.d = janet_unwrap_number(x);
|
||||
uint32_t lo = (uint32_t)(as.u & 0xFFFFFFFF);
|
||||
uint32_t hi = (uint32_t)(as.u >> 32);
|
||||
hash = (int32_t)(hi ^ (lo >> 3));
|
||||
hash = (int32_t)((hi ^ (lo >> 3)) * 2654435769u);
|
||||
break;
|
||||
}
|
||||
case JANET_ABSTRACT: {
|
||||
|
||||
Reference in New Issue
Block a user