summaryrefslogtreecommitdiff
path: root/src/runtime/print.c
diff options
context:
space:
mode:
authorKen Thompson <ken@golang.org>2008-09-13 14:46:19 -0700
committerKen Thompson <ken@golang.org>2008-09-13 14:46:19 -0700
commit4103591e5e9bdf1c8b813d6f56f4fbcd0ffac3c8 (patch)
treedeea1554c7aeed11de28f3f48eb16ab42c52607c /src/runtime/print.c
parentc55a7d576fa4dd3384698862c9570d091dcd03eb (diff)
downloadgolang-4103591e5e9bdf1c8b813d6f56f4fbcd0ffac3c8.tar.gz
correct signal name thru package rename
R=r OCL=15312 CL=15312
Diffstat (limited to 'src/runtime/print.c')
-rw-r--r--src/runtime/print.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/runtime/print.c b/src/runtime/print.c
index a2bed1967..8236f04b4 100644
--- a/src/runtime/print.c
+++ b/src/runtime/print.c
@@ -96,12 +96,13 @@ sys·printfloat(float64 v)
buf[1] = buf[2];
buf[2] = '.';
- buf[n+2] = '+';
+ buf[n+2] = 'e';
+ buf[n+3] = '+';
if(e < 0) {
e = -e;
- buf[n+2] = '-';
+ buf[n+3] = '-';
}
- buf[n+3] = 'e';
+
buf[n+4] = (e/10) + '0';
buf[n+5] = (e%10) + '0';
sys·write(1, buf, n+6);