WINTERMUTE: Get rid of almost all LLVM GCC 4.2 warnings.

This commit is contained in:
Einar Johan Trøan Sømåen 2012-07-27 18:13:42 +02:00
parent 6262a2ac87
commit f6ac34ab9a
15 changed files with 32 additions and 24 deletions

View file

@ -116,9 +116,9 @@ public:
if (allFiles.contains("data.dcp")) {
Common::String name, caption;
if (WinterMuteEngine::getGameInfo(fslist, name, caption)) {
for (int32 i = 0; i < name.size(); i++) {
for (uint32 i = 0; i < name.size(); i++) {
// Replace spaces (and other non-alphanumerics) with underscores
if (!Common::isAlnum(name[i])) {
if (!Common::isAlnum(name[(int32)i])) {
name.setChar('_', (uint32)i);
}
}