From 69879f04147ca80f231e6ce6e6c50bbdd3f1cd85 Mon Sep 17 00:00:00 2001 From: Evan Shaw Date: Tue, 1 Jun 2010 14:08:15 -0700 Subject: [PATCH] runtime: Fix printing -Inf R=rsc CC=golang-dev https://golang.org/cl/1258044 --- src/pkg/runtime/print.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pkg/runtime/print.c b/src/pkg/runtime/print.c index 12484329ebb..aa207e31246 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; }