diff options
Diffstat (limited to 'src/pkg/runtime/alg.c')
-rw-r--r-- | src/pkg/runtime/alg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/runtime/alg.c b/src/pkg/runtime/alg.c index 56ec2d69e..e3c42916e 100644 --- a/src/pkg/runtime/alg.c +++ b/src/pkg/runtime/alg.c @@ -263,7 +263,7 @@ runtimeĀ·f64hash(uintptr *h, uintptr s, void *a) uint64 u; USED(s); - f = *(float32*)a; + f = *(float64*)a; if(f == 0) hash = 0; // +0, -0 else if(f != f) @@ -271,7 +271,7 @@ runtimeĀ·f64hash(uintptr *h, uintptr s, void *a) else { u = *(uint64*)a; if(sizeof(uintptr) == 4) - hash = ((uint32)(u>>32) ^ 2860486313) * (uint32)u; + hash = ((uint32)(u>>32) * 3267000013UL) ^ (uint32)u; else hash = u; } |