GUI: Fix warning on systems where char is unsigned

This commit is contained in:
Max Horn 2011-04-26 14:24:38 +02:00
parent 1ba3d462d2
commit 759cac0abc

View file

@ -1503,7 +1503,7 @@ Common::String ThemeEngine::genLocalizedFontFilename(const Common::String &filen
bool ThemeEngine::themeConfigParseHeader(Common::String header, Common::String &themeName) { bool ThemeEngine::themeConfigParseHeader(Common::String header, Common::String &themeName) {
// Check that header is not corrupted // Check that header is not corrupted
if (header[0] < 0 || header[0] > 127) { if ((byte)header[0] > 127) {
warning("Corrupted theme header found"); warning("Corrupted theme header found");
return false; return false;
} }