diff options
Diffstat (limited to 'src/cmd')
-rw-r--r-- | src/cmd/yacc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd/yacc.c b/src/cmd/yacc.c index 32990f62..5db36d04 100644 --- a/src/cmd/yacc.c +++ b/src/cmd/yacc.c @@ -2819,8 +2819,9 @@ stin(int i) for(n = -maxoff; n < ACTSIZE; n++) { flag = 0; for(r = q1; r < q2; r += 2) { - if((s = *r + n + amem) < amem) + if(*r + n < 0) goto nextn; + s = *r + n + amem; if(*s == 0) flag++; else |