Commit 69879f04 authored by Evan Shaw's avatar Evan Shaw Committed by Russ Cox

runtime: Fix printing -Inf

R=rsc
CC=golang-dev
https://golang.org/cl/1258044
parent 0d64fa19
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment