Oops
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Sat, 6 Sep 2008 16:38:29 +0000 (19:38 +0300)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Sat, 6 Sep 2008 16:38:29 +0000 (19:38 +0300)
include/vlc_mtime.h

index 324c8eb..08262a7 100644 (file)
@@ -96,9 +96,11 @@ void bad_msleep( mtime_t delay )
 }
 
 # define msleep( d ) \
-    (__builtin_constant_p(d < VLC_HARD_MIN_SLEEP) \
+    ((__builtin_constant_p(d < VLC_HARD_MIN_SLEEP) \
+   && (d < VLC_HARD_MIN_SLEEP)) \
        ? impossible_msleep(d) \
-       : (__builtin_constant_p(d < VLC_SOFT_MIN_SLEEP) \
+       : ((__builtin_constant_p(d < VLC_SOFT_MIN_SLEEP) \
+       && (d < VLC_SOFT_MIN_SLEEP)) \
            ? bad_msleep(d) \
            : msleep(d)))
 #endif