mirror of
https://github.com/golang/go
synced 2024-11-22 02:44:39 -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);
|
write(fd, "NaN", 3);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(isInf(v, 0)) {
|
if(isInf(v, 1)) {
|
||||||
write(fd, "+Inf", 4);
|
write(fd, "+Inf", 4);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(isInf(v, -1)) {
|
if(isInf(v, -1)) {
|
||||||
write(fd, "+Inf", 4);
|
write(fd, "-Inf", 4);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user