diff options
| author | Rob Pike <r@golang.org> | 2008-08-11 15:04:54 -0700 |
|---|---|---|
| committer | Rob Pike <r@golang.org> | 2008-08-11 15:04:54 -0700 |
| commit | 968701beb1562c3492d06e39bf137ee9796e7f57 (patch) | |
| tree | d2b5fd8f1b05d90e91420b4ccadf1eca287fb426 /src/runtime/runtime.c | |
| parent | 2679eefb314097d9382ca79fd0ae1933bee2b870 (diff) | |
| download | go-968701beb1562c3492d06e39bf137ee9796e7f57.tar.xz | |
- fix signedness bug in sys.Inf()
- add NaN, Inf printing to fmt
- fix a couple of bugs in fmt
- add a test for fmt
R=ken
OCL=14092
CL=14092
Diffstat (limited to 'src/runtime/runtime.c')
| -rw-r--r-- | src/runtime/runtime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/runtime.c b/src/runtime/runtime.c index fdb7d9404d..973fb5bd3c 100644 --- a/src/runtime/runtime.c +++ b/src/runtime/runtime.c @@ -350,7 +350,7 @@ isNaN(float64 d) static float64 Inf(int32 sign) { - if(sign < 0) + if(sign >= 0) return *(float64*)&uvinf; else return *(float64*)&uvneginf; |
