]> git.sesse.net Git - vlc/commitdiff
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 16c9c88daafb955111e396f1912ba4dedfb7dff3..98316a2ab00955464c50e03a384e8bba572eafd4 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;