aboutsummaryrefslogtreecommitdiffstats
path: root/numeric.c
diff options
context:
space:
mode:
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numeric.c b/numeric.c
index 1425348a95..db847567d0 100644
--- a/numeric.c
+++ b/numeric.c
@@ -2283,7 +2283,7 @@ int_pow(long x, unsigned long y)
}
{
long xz = x * z;
- if (xz < z || xz < x || !POSFIXABLE(xz)) {
+ if (!POSFIXABLE(xz) || xz / x != z) {
goto bignum;
}
z = xz;