From: Eli Zaretskii Date: Tue, 28 Aug 2018 16:36:02 +0000 (+0300) Subject: Fix a recent change X-Git-Tag: emacs-27.0.90~4495 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c39ca701d3ffa3a7fcb987170436ad441e8f8ad6;p=emacs.git Fix a recent change * src/dispnew.c (sit_for): Don;t treat nil as zero. Reported by Glenn Morris . --- 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)