Mercurial > audlegacy
diff Plugins/Input/modplug/archive/open.cpp @ 701:d539e5c5f730 trunk
[svn] Fixes of the remaining GCC 4.1 warnings from external contributor Diego "Flameeyes" Petteno (Gentoo).
| author | chainsaw |
|---|---|
| date | Sun, 26 Feb 2006 13:08:35 -0800 |
| parents | 37316876ef6e |
| children |
line wrap: on
line diff
--- a/Plugins/Input/modplug/archive/open.cpp Sun Feb 26 10:21:49 2006 -0800 +++ b/Plugins/Input/modplug/archive/open.cpp Sun Feb 26 13:08:35 2006 -0800 @@ -17,7 +17,7 @@ uint32 lPos; lPos = aFileName.find_last_of('.'); - if(lPos < 0) + if(lPos > aFileName.length()) return NULL; lExt = aFileName.substr(lPos); for(uint32 i = 0; i < lExt.length(); i++) @@ -67,7 +67,7 @@ uint32 lPos; lPos = aFileName.find_last_of('.'); - if(lPos < 0) + if(lPos > aFileName.length()) return false; lExt = aFileName.substr(lPos); for(uint32 i = 0; i < lExt.length(); i++)
