aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2010-07-08 17:49:39 +0000
committerMichael Niedermayer <michaelni@gmx.at>2010-07-08 17:49:39 +0000
commitb65c1ccfe10b993f1700ce7e7c3c1e96f535937e (patch)
treea0063ca6fa38a27bb5cebbc6c3676e3f558bb051 /libavutil
parent9be24c60d38398541cd3a916285029fa7f38951f (diff)
downloadffmpeg-b65c1ccfe10b993f1700ce7e7c3c1e96f535937e.tar.gz
Change i to unsigned in get_generic_seed().
This is clearer than comparing against an unsigned number to force an unsigned comparison that we need. Originally committed as revision 24114 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/random_seed.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/random_seed.c b/libavutil/random_seed.c
index f8e7f83d3c..762e02e0dd 100644
--- a/libavutil/random_seed.c
+++ b/libavutil/random_seed.c
@@ -43,13 +43,13 @@ static uint32_t get_generic_seed(void)
int last_t=0;
int bits=0;
uint64_t random=0;
- int i;
+ unsigned i;
int s=0;
for(i=0;bits<64;i++){
int t= clock()>>s;
if(last_t && t != last_t){
- if(i<10000U && s<24){
+ if(i<10000 && s<24){
s++;
i=t=0;
}else{