diff options
Diffstat (limited to 'src/runtime/softfloat64_test.go')
| -rw-r--r-- | src/runtime/softfloat64_test.go | 2 |
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) } } |
