1
0
mirror of https://github.com/golang/go synced 2024-11-21 23:34:42 -07:00

runtime: fix float64 hash

R=ken2
CC=golang-dev
https://golang.org/cl/5580046
This commit is contained in:
Russ Cox 2012-01-30 11:10:59 -05:00
parent ed7a8f7159
commit 022aac7883

View File

@ -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)