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 ...@@ -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;
} }
......
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