diff integer.c @ 490:4e4ba0186360 libavutil

simplify
author michael
date Sat, 05 Apr 2008 10:52:27 +0000
parents e7192ff1857d
children 8c48a1b999a3
line wrap: on
line diff
--- a/integer.c	Thu Apr 03 19:20:32 2008 +0000
+++ b/integer.c	Sat Apr 05 10:52:27 2008 +0000
@@ -96,10 +96,10 @@
     int i;
 
     for(i=0; i<AV_INTEGER_SIZE; i++){
-        int index= i + (s>>4);
+        unsigned int index= i + (s>>4);
         unsigned int v=0;
-        if(index+1<AV_INTEGER_SIZE && index+1>=0) v = a.v[index+1]<<16;
-        if(index  <AV_INTEGER_SIZE && index  >=0) v+= a.v[index  ];
+        if(index+1<AV_INTEGER_SIZE) v = a.v[index+1]<<16;
+        if(index  <AV_INTEGER_SIZE) v+= a.v[index  ];
         out.v[i]= v >> (s&15);
     }
     return out;