mirror of
https://github.com/golang/go
synced 2024-11-21 20:04:44 -07:00
runtime: Fix printing -Inf
R=rsc CC=golang-dev https://golang.org/cl/1258044
This commit is contained in:
parent
0d64fa19f8
commit
69879f0414
@ -200,12 +200,12 @@ void
|
||||
write(fd, "NaN", 3);
|
||||
return;
|
||||
}
|
||||
if(isInf(v, 0)) {
|
||||
if(isInf(v, 1)) {
|
||||
write(fd, "+Inf", 4);
|
||||
return;
|
||||
}
|
||||
if(isInf(v, -1)) {
|
||||
write(fd, "+Inf", 4);
|
||||
write(fd, "-Inf", 4);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user