[FFmpeg-cvslog] r24022 - trunk/libavutil/mathematics.c

cehoyos subversion
Sat Jul 3 19:06:12 CEST 2010


Author: cehoyos
Date: Sat Jul  3 19:06:12 2010
New Revision: 24022

Log:
Silence "comparison of unsigned expression >= 0 is always true" warning.

Patch by Eli Friedman, eli d friedman a gmail

Modified:
   trunk/libavutil/mathematics.c

Modified: trunk/libavutil/mathematics.c
==============================================================================
--- trunk/libavutil/mathematics.c	Sat Jul  3 17:35:23 2010	(r24021)
+++ trunk/libavutil/mathematics.c	Sat Jul  3 19:06:12 2010	(r24022)
@@ -78,7 +78,7 @@ int64_t av_rescale_rnd(int64_t a, int64_
     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));
 



More information about the ffmpeg-cvslog mailing list