X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/34136e65fc7bd6babcfedcbfcfdca3b9feb10f1d..ccdc1577ef7fb32a5e30cb655337e7cd42b98987:/etc/bench.pl.in diff --git a/etc/bench.pl.in b/etc/bench.pl.in index 7e604309..5d83fc7b 100755 --- a/etc/bench.pl.in +++ b/etc/bench.pl.in @@ -371,8 +371,8 @@ sub generate_grammar_calc ($$@) or die; print $out < #include - #include #include #include @@ -528,9 +528,8 @@ yylex (void) static int power (int base, int exponent) { + assert (0 <= exponent); int res = 1; - if (exponent < 0) - exit (3); for (/* Niente */; exponent; --exponent) res *= base; return res;