From b7cdddcd1f0cbee60f6322ead7f13acd02fb55ca Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Sat, 3 Jul 2010 17:06:12 +0000 Subject: Silence "comparison of unsigned expression >= 0 is always true" warning. Patch by Eli Friedman, eli d friedman a gmail Originally committed as revision 24022 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavutil/mathematics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavutil/mathematics.c') diff --git a/libavutil/mathematics.c b/libavutil/mathematics.c index 00b81f131e..c6851cb755 100644 --- a/libavutil/mathematics.c +++ b/libavutil/mathematics.c @@ -78,7 +78,7 @@ int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding rnd){ int64_t r=0; assert(c > 0); assert(b >=0); - assert(rnd >=0 && rnd<=5 && rnd!=4); + assert((unsigned)rnd<=5 && rnd!=4); if(a<0 && a != INT64_MIN) return -av_rescale_rnd(-a, b, c, rnd ^ ((rnd>>1)&1)); -- cgit v1.2.3