diff options
| author | Eli Zaretskii | 2018-08-28 19:36:02 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2018-08-28 19:36:02 +0300 |
| commit | c39ca701d3ffa3a7fcb987170436ad441e8f8ad6 (patch) | |
| tree | f500a5faf94e742c6bc0e029ad82428a15b7f648 /src | |
| parent | adcf904b3a7f8c5b8a82a40725ef7baa3a76c993 (diff) | |
| download | emacs-c39ca701d3ffa3a7fcb987170436ad441e8f8ad6.tar.gz emacs-c39ca701d3ffa3a7fcb987170436ad441e8f8ad6.zip | |
Fix a recent change
* src/dispnew.c (sit_for): Don;t treat nil as zero. Reported
by Glenn Morris <rgm@gnu.org>.
Diffstat (limited to 'src')
| -rw-r--r-- | src/dispnew.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
| 5775 | } | 5775 | } |
| 5776 | else if (BIGNUMP (timeout)) | 5776 | else if (BIGNUMP (timeout)) |
| 5777 | { | 5777 | { |
| 5778 | if (!Fnatnump (timeout)) | 5778 | if (NILP (Fnatnump (timeout))) |
| 5779 | return Qt; | 5779 | return Qt; |
| 5780 | sec = bignum_to_intmax (timeout); | 5780 | sec = bignum_to_intmax (timeout); |
| 5781 | if (sec == 0) | 5781 | if (sec == 0) |