summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Naggum <erik@naggum.no>1996-02-22 05:50:00 +0000
committerErik Naggum <erik@naggum.no>1996-02-22 05:50:00 +0000
commit4962b447c446fe44b4809f6fb63c759f7cd163f3 (patch)
tree8d8438e665eea27879ed895fabf309a2471ad897
parent70a28b34993fda34b3ef4071615a739ed912a83a (diff)
downloademacs-4962b447c446fe44b4809f6fb63c759f7cd163f3.tar.gz
(Fsleep_for): Accept sub-second intervals.
-rw-r--r--src/dispnew.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index ac0d30cef44..201f4a579e7 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -2308,7 +2308,7 @@ Emacs was built without floating point support.\n\
else
sec += usec / 1000000, usec %= 1000000;
- if (sec <= 0)
+ if (sec < 0 || (sec == 0 && usec == 0))
return Qnil;
{