[vlc-devel] [PATCH 6/8] dbus: fix vlc_tick_t value test
Steve Lhomme
robux4 at ycbcr.xyz
Thu Aug 13 14:12:19 CEST 2020
Either from the algorithm or the type of vlc_tick_t, it can never be bigger
than INT64_MAX.
---
modules/control/dbus/dbus.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/control/dbus/dbus.c b/modules/control/dbus/dbus.c
index b968ba9e948..075e1629414 100644
--- a/modules/control/dbus/dbus.c
+++ b/modules/control/dbus/dbus.c
@@ -474,7 +474,7 @@ static int next_timeout(intf_thread_t *intf)
next_timeout = *expiry;
}
- if (next_timeout >= INT64_MAX)
+ if (next_timeout == INT64_MAX)
return -1;
next_timeout /= 1000;
--
2.26.2
More information about the vlc-devel
mailing list