aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/softfloat64_test.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-11-11 22:30:02 -0500
committerRuss Cox <rsc@golang.org>2014-11-11 22:30:02 -0500
commitc81d248ecaef272aae56adabf84588c254b8ec39 (patch)
treea58c37a05562aa39130def0faf7d62b2123010eb /src/runtime/softfloat64_test.go
parent8420df622aac7eef6734020a186eb6473ec3ce65 (diff)
downloadgo-c81d248ecaef272aae56adabf84588c254b8ec39.tar.xz
[dev.cc] runtime: convert softfloat_arm.c to Go + build fixes
Also include onM_signalok fix from issue 8995. Fixes linux/arm build. Fixes #8995. LGTM=r R=r, dave CC=golang-codereviews https://golang.org/cl/168580043
Diffstat (limited to 'src/runtime/softfloat64_test.go')
-rw-r--r--src/runtime/softfloat64_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/softfloat64_test.go b/src/runtime/softfloat64_test.go
index df63010fbd..e108872835 100644
--- a/src/runtime/softfloat64_test.go
+++ b/src/runtime/softfloat64_test.go
@@ -182,7 +182,7 @@ func hwcmp(f, g float64) (cmp int, isnan bool) {
func testcmp(t *testing.T, f, g float64) {
hcmp, hisnan := hwcmp(f, g)
scmp, sisnan := Fcmp64(math.Float64bits(f), math.Float64bits(g))
- if hcmp != scmp || hisnan != sisnan {
+ if int32(hcmp) != scmp || hisnan != sisnan {
err(t, "cmp(%g, %g) = sw %v, %v, hw %v, %v\n", f, g, scmp, sisnan, hcmp, hisnan)
}
}