X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/24bb5f8fb7f14df4050cbefd27ae60fa9cef259d..dd5611579b3978eff5c4aa22dc8459b8f53c2fc0:/tests/calc.at diff --git a/tests/calc.at b/tests/calc.at index 46b798f5..f0e30ad3 100644 --- a/tests/calc.at +++ b/tests/calc.at @@ -347,8 +347,7 @@ static int power (int base, int exponent) { int res = 1; - if (exponent < 0) - exit (3); + assert (0 <= exponent); for (/* Niente */; exponent; --exponent) res *= base; return res;