Commit 022aac78 authored by Russ Cox's avatar Russ Cox

runtime: fix float64 hash

R=ken2
CC=golang-dev
https://golang.org/cl/5580046
parent ed7a8f71
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment