mirror of
https://github.com/golang/go
synced 2024-11-25 08:57:58 -07:00
fix bug in closeness for float literal test
SVN=121628
This commit is contained in:
parent
33f7637d6a
commit
3086910f17
@ -23,7 +23,7 @@ close(a, b double) bool
|
||||
if e < 0 {
|
||||
e = -e;
|
||||
}
|
||||
if e*1.0e-14 < d {
|
||||
if e*1.0e-14 > d {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
@ -2,8 +2,6 @@
|
||||
=========== ./char_lit.go
|
||||
|
||||
=========== ./float_lit.go
|
||||
+10. is printfloat should be printfloat
|
||||
BUG: known to fail incorrectly
|
||||
|
||||
=========== ./for.go
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user