From: RĂ©mi Denis-Courmont Date: Sat, 6 Sep 2008 16:38:29 +0000 (+0300) Subject: Oops X-Git-Tag: 1.0.0-pre1~3486 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=6db8a5e028fd4e7d97b95c7b945c13230f15a40b;p=vlc Oops --- diff --git a/include/vlc_mtime.h b/include/vlc_mtime.h index 324c8eb386..08262a75f8 100644 --- a/include/vlc_mtime.h +++ b/include/vlc_mtime.h @@ -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