Fix notices when generating expected tokens list

This commit is contained in:
nikic 2013-07-27 18:48:49 +02:00
parent 77c08a75c9
commit 09c106d11f

View File

@ -311,7 +311,7 @@ class #(-p)
$n = $base + $i;
if ($n >= 0 && $n < self::YYLAST && self::$yycheck[$n] == $i
|| $state < self::YY2TBLSTATE
&& ($n = self::$yybase[$state + self::YYNLSTATES] + $i)
&& ($n = self::$yybase[$state + self::YYNLSTATES] + $i) >= 0
&& $n < self::YYLAST && self::$yycheck[$n] == $i
) {
if (self::$yyaction[$n] != self::YYUNEXPECTED) {