diff options
-rw-r--r-- | src/pkg/runtime/print.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/runtime/print.c b/src/pkg/runtime/print.c index 12484329e..aa207e312 100644 --- a/src/pkg/runtime/print.c +++ b/src/pkg/runtime/print.c @@ -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; } |