summaryrefslogtreecommitdiff
path: root/src/runtime/print.c
diff options
context:
space:
mode:
authorKen Thompson <ken@golang.org>2008-09-13 14:49:36 -0700
committerKen Thompson <ken@golang.org>2008-09-13 14:49:36 -0700
commitc85e70f97f26400bf913c73d13484b7f857c8fc0 (patch)
tree8cd019d63f2415f13014c1f2b90b5c1161da2279 /src/runtime/print.c
parent4103591e5e9bdf1c8b813d6f56f4fbcd0ffac3c8 (diff)
downloadgolang-c85e70f97f26400bf913c73d13484b7f857c8fc0.tar.gz
Automated g4 rollback of changelist 15312.
*** Reason for rollback *** <enter reason for rollback> *** Original change description *** correct signal name thru package rename R=r OCL=15313 CL=15313
Diffstat (limited to 'src/runtime/print.c')
-rw-r--r--src/runtime/print.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/runtime/print.c b/src/runtime/print.c
index 8236f04b4..a2bed1967 100644
--- a/src/runtime/print.c
+++ b/src/runtime/print.c
@@ -96,13 +96,12 @@ sys·printfloat(float64 v)
buf[1] = buf[2];
buf[2] = '.';
- buf[n+2] = 'e';
- buf[n+3] = '+';
+ buf[n+2] = '+';
if(e < 0) {
e = -e;
- buf[n+3] = '-';
+ buf[n+2] = '-';
}
-
+ buf[n+3] = 'e';
buf[n+4] = (e/10) + '0';
buf[n+5] = (e%10) + '0';
sys·write(1, buf, n+6);