From 022aac78836a96ca844efd327071a55b13cca6a0 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 30 Jan 2012 11:10:59 -0500 Subject: [PATCH] runtime: fix float64 hash R=ken2 CC=golang-dev https://golang.org/cl/5580046 --- src/pkg/runtime/alg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/runtime/alg.c b/src/pkg/runtime/alg.c index 56ec2d69e69..eec523aad4d 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)