From: Russ Cox Date: Mon, 30 Jan 2012 16:10:59 +0000 (-0500) Subject: runtime: fix float64 hash X-Git-Tag: weekly.2012-02-07~224 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=022aac78836a96ca844efd327071a55b13cca6a0;p=gostls13.git runtime: fix float64 hash R=ken2 CC=golang-dev https://golang.org/cl/5580046 --- diff --git a/src/pkg/runtime/alg.c b/src/pkg/runtime/alg.c index 56ec2d69e6..eec523aad4 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)