[Scummvm-cvs-logs] scummvm master -> 759cac0abc94f4ffab09c229d0218d6a89403d5b
fingolfin
max at quendi.de
Tue Apr 26 14:28:02 CEST 2011
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
759cac0abc GUI: Fix warning on systems where char is unsigned
Commit: 759cac0abc94f4ffab09c229d0218d6a89403d5b
https://github.com/scummvm/scummvm/commit/759cac0abc94f4ffab09c229d0218d6a89403d5b
Author: Max Horn (max at quendi.de)
Date: 2011-04-26T05:24:47-07:00
Commit Message:
GUI: Fix warning on systems where char is unsigned
Changed paths:
gui/ThemeEngine.cpp
diff --git a/gui/ThemeEngine.cpp b/gui/ThemeEngine.cpp
index 2f9c7ae..e063e11 100644
--- a/gui/ThemeEngine.cpp
+++ b/gui/ThemeEngine.cpp
@@ -1503,7 +1503,7 @@ Common::String ThemeEngine::genLocalizedFontFilename(const Common::String &filen
bool ThemeEngine::themeConfigParseHeader(Common::String header, Common::String &themeName) {
// Check that header is not corrupted
- if (header[0] < 0 || header[0] > 127) {
+ if ((byte)header[0] > 127) {
warning("Corrupted theme header found");
return false;
}
More information about the Scummvm-git-logs
mailing list