From 1bf3ce0223124195cce49577a700239ab527d724 Mon Sep 17 00:00:00 2001 From: Drew Fisher Date: Mon, 14 Nov 2011 11:39:36 -0800 Subject: [PATCH] touchmouse_process_events_timeout(): obey documentation's semantics Signed-off-by: Drew Fisher --- src/touchmouse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/touchmouse.c b/src/touchmouse.c index bc7ad48..3cbd60d 100644 --- a/src/touchmouse.c +++ b/src/touchmouse.c @@ -337,7 +337,7 @@ int touchmouse_process_events_timeout(touchmouse_device *dev, int milliseconds) unsigned char data[256] = {}; int res; uint64_t deadline; - if(milliseconds == -1) { + if(milliseconds < 0) { deadline = (uint64_t)(-1); } else { deadline = mono_timer_nanos() + (milliseconds * 1000000); -- 2.39.2