1
0
mirror of https://github.com/golang/go synced 2024-11-22 04:34:39 -07:00

goyacc: fix indexing bug when yydebug >= 2

Fixes #2701.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5556070
This commit is contained in:
Rob Pike 2012-01-20 10:22:41 -08:00
parent 0a851754a0
commit a67c69cbae

View File

@ -3271,10 +3271,9 @@ $$default:
}
}
/* the current p has no shift onn "error", pop stack */
/* the current p has no shift on "error", pop stack */
if $$Debug >= 2 {
fmt.Printf("error recovery pops state %d, uncovers %d\n",
$$S[$$p].yys, $$S[$$p-1].yys)
fmt.Printf("error recovery pops state %d\n", $$S[$$p].yys)
}
$$p--
}