Commit 507f26d5 authored by Eli Zaretskii's avatar Eli Zaretskii

Fix a recent change in bignum.c

* src/bignum.c (check_int_nonnegative): Fix a recent change.
Reported by Glenn Morris <rgm@gnu.org>.
parent c40b7238
Pipeline #5180 passed with stage
in 56 minutes and 24 seconds
......@@ -465,5 +465,5 @@ int
check_int_nonnegative (Lisp_Object x)
{
CHECK_INTEGER (x);
return Fnatnump (x) ? check_integer_range (x, 0, INT_MAX) : 0;
return NILP (Fnatnump (x)) ? 0 : check_integer_range (x, 0, INT_MAX);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment