mirror of
https://github.com/golang/go
synced 2024-11-24 23:07:56 -07:00
runtime: fix float64 hash
R=ken2 CC=golang-dev https://golang.org/cl/5580046
This commit is contained in:
parent
ed7a8f7159
commit
022aac7883
@ -263,7 +263,7 @@ runtime·f64hash(uintptr *h, uintptr s, void *a)
|
|||||||
uint64 u;
|
uint64 u;
|
||||||
|
|
||||||
USED(s);
|
USED(s);
|
||||||
f = *(float32*)a;
|
f = *(float64*)a;
|
||||||
if(f == 0)
|
if(f == 0)
|
||||||
hash = 0; // +0, -0
|
hash = 0; // +0, -0
|
||||||
else if(f != f)
|
else if(f != f)
|
||||||
|
Loading…
Reference in New Issue
Block a user