[vlc-devel] commit: mkv: fix warning (size_t is unsigned). ( Rémi Duraffort )
git version control
git at videolan.org
Sun Mar 22 18:18:02 CET 2009
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sun Mar 22 17:30:26 2009 +0100| [614938b1a399ec940efd771c1e3f32bc0152979c] | committer: Rémi Duraffort
mkv: fix warning (size_t is unsigned).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=614938b1a399ec940efd771c1e3f32bc0152979c
---
modules/demux/mkv/chapter_command.hpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/demux/mkv/chapter_command.hpp b/modules/demux/mkv/chapter_command.hpp
index 16c9c88..98316a2 100644
--- a/modules/demux/mkv/chapter_command.hpp
+++ b/modules/demux/mkv/chapter_command.hpp
@@ -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;
More information about the vlc-devel
mailing list