diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2010-07-03 17:06:12 +0000 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2010-07-03 17:06:12 +0000 |
commit | b7cdddcd1f0cbee60f6322ead7f13acd02fb55ca (patch) | |
tree | a1e938c92ee6f09ad0d9693321cdb4abb6b9f7b0 /libavutil/mathematics.c | |
parent | 2d525ef483df1adbc6e22bbb27467033a90cc196 (diff) | |
download | ffmpeg-b7cdddcd1f0cbee60f6322ead7f13acd02fb55ca.tar.gz |
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
Diffstat (limited to 'libavutil/mathematics.c')
-rw-r--r-- | libavutil/mathematics.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |