Browse Source

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
tags/n0.8
Eli Friedman Carl Eugen Hoyos 15 years ago
parent
commit
b7cdddcd1f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavutil/mathematics.c

+ 1
- 1
libavutil/mathematics.c View File

@@ -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; int64_t r=0;
assert(c > 0); assert(c > 0);
assert(b >=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)); if(a<0 && a != INT64_MIN) return -av_rescale_rnd(-a, b, c, rnd ^ ((rnd>>1)&1));




Loading…
Cancel
Save