public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be909fe
)
Remove the negative-constant code from the compiler; I think it's going to
author
David Given
<dg@cowlark.com>
Sun, 1 Jan 2017 17:44:55 +0000
(17:44 +0000)
committer
David Given
<dg@cowlark.com>
Sun, 1 Jan 2017 17:44:55 +0000
(17:44 +0000)
break a=-1 (with no spaces). Backed out changeset
dead3363ac7d
.
lang/b/compiler/b0.c
patch
|
blob
|
history
diff --git
a/lang/b/compiler/b0.c
b/lang/b/compiler/b0.c
index
cb28a6a
..
16fbee1
100644
(file)
--- a/
lang/b/compiler/b0.c
+++ b/
lang/b/compiler/b0.c
@@
-373,15
+373,7
@@
loop:
return subseq(c,PLUS,INCBEF);
case MINUS:
- /* avoid peeking a name, which could overwrite
- * an already set bsym. */
- if (ctab[peekc = spnextchar()] == DIGIT) {
- getnum();
- cval = -cval;
- return CON;
- } else {
- return subseq(c,MINUS,DECBEF);
- }
+ return subseq(c,MINUS,DECBEF);
case LESS:
if (subseq(c,0,1))