aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bignum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bignum.c b/src/bignum.c
index 859896cdcf7..669df4d9ee3 100644
--- a/src/bignum.c
+++ b/src/bignum.c
@@ -465,5 +465,5 @@ int
465check_int_nonnegative (Lisp_Object x) 465check_int_nonnegative (Lisp_Object x)
466{ 466{
467 CHECK_INTEGER (x); 467 CHECK_INTEGER (x);
468 return Fnatnump (x) ? check_integer_range (x, 0, INT_MAX) : 0; 468 return NILP (Fnatnump (x)) ? 0 : check_integer_range (x, 0, INT_MAX);
469} 469}