mkv: fix warning (size_t is unsigned).
authorRémi Duraffort <ivoire@videolan.org>
Sun, 22 Mar 2009 16:30:26 +0000 (17:30 +0100)
committerRémi Duraffort <ivoire@videolan.org>
Sun, 22 Mar 2009 17:12:30 +0000 (18:12 +0100)
modules/demux/mkv/chapter_command.hpp

index 16c9c88..98316a2 100644 (file)
@@ -122,7 +122,7 @@ public:
 
     uint16 GetGPRM( size_t index ) const
     {
-        if ( index >= 0 && index < 16 )
+        if ( index < 16 )
             return p_PRMs[ index ];
         else return 0;
     }
@@ -137,7 +137,7 @@ public:
 
     bool SetPRM( size_t index, uint16 value )
     {
-        if ( index >= 0 && index < 16 )
+        if ( index < 16 )
         {
             p_PRMs[ index ] = value;
             return true;
@@ -147,7 +147,7 @@ public:
  
     bool SetGPRM( size_t index, uint16 value )
     {
-        if ( index >= 0 && index < 16 )
+        if ( index < 16 )
         {
             p_PRMs[ index ] = value;
             return true;