From c39ca701d3ffa3a7fcb987170436ad441e8f8ad6 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Tue, 28 Aug 2018 19:36:02 +0300 Subject: [PATCH] Fix a recent change * src/dispnew.c (sit_for): Don;t treat nil as zero. Reported by Glenn Morris . --- src/dispnew.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dispnew.c b/src/dispnew.c index 97c6a446a6b..61ca717079b 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -5775,7 +5775,7 @@ sit_for (Lisp_Object timeout, bool reading, int display_option) } else if (BIGNUMP (timeout)) { - if (!Fnatnump (timeout)) + if (NILP (Fnatnump (timeout))) return Qt; sec = bignum_to_intmax (timeout); if (sec == 0) -- 2.39.5