aboutsummaryrefslogtreecommitdiff
path: root/src/cmd
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-06-04 11:06:37 -0700
committerRuss Cox <rsc@golang.org>2009-06-04 11:06:37 -0700
commitf51ca384eba74692315b51b1db99d412f4472e17 (patch)
treeb025b211ca08d2c780ca9807f1975b610b2d5f59 /src/cmd
parent70ce47058ee6842c6b6f20b059dbd5da288dc01d (diff)
downloadgo-f51ca384eba74692315b51b1db99d412f4472e17.tar.xz
fix handling of floating point zero constant 0p+0
R=r DELTA=25 (25 added, 0 deleted, 0 changed) OCL=29875 CL=29875
Diffstat (limited to 'src/cmd')
-rw-r--r--src/cmd/gc/lex.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd/gc/lex.c b/src/cmd/gc/lex.c
index e67f8f572b..51e6534e12 100644
--- a/src/cmd/gc/lex.c
+++ b/src/cmd/gc/lex.c
@@ -807,6 +807,9 @@ tnum:
}
}
+ if(c == 'p') // 0p begins floating point zero
+ goto casep;
+
c1 = 0;
for(;;) {
if(!isdigit(c))