X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/34136e65fc7bd6babcfedcbfcfdca3b9feb10f1d..22b081deb7ab1d0ec7a279e5213fa7fdc2c85207:/etc/bench.pl.in?ds=inline 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;