aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2012-10-22 23:23:17 +1100
committerPaul Gilbert2012-10-22 23:23:17 +1100
commit9e1d5ffba20be8ed359888fe02f981f3e45b5047 (patch)
tree8613e6cc7bfa8408a159cba4adde608da9f8c352 /engines
parentece18540de490b88f83e91f296c085164c42f3a8 (diff)
downloadscummvm-rg350-9e1d5ffba20be8ed359888fe02f981f3e45b5047.tar.gz
scummvm-rg350-9e1d5ffba20be8ed359888fe02f981f3e45b5047.tar.bz2
scummvm-rg350-9e1d5ffba20be8ed359888fe02f981f3e45b5047.zip
HOPKINS: Fix gcc identified warnings in font.cpp
Diffstat (limited to 'engines')
-rw-r--r--engines/hopkins/font.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/hopkins/font.cpp b/engines/hopkins/font.cpp
index fdcf86ea1b..7612c9cb04 100644
--- a/engines/hopkins/font.cpp
+++ b/engines/hopkins/font.cpp
@@ -220,7 +220,7 @@ void FontManager::BOITE(int idx, int messageId, const Common::String &filename,
if (!f.open(nom_index))
error("Error opening file - %s", nom_index.c_str());
filesize = f.size();
- for (int i = 0; i < (filesize / 4); ++i)
+ for (i = 0; i < (filesize / 4); ++i)
Index[i] = f.readUint32LE();
f.close();
}
@@ -255,8 +255,8 @@ void FontManager::BOITE(int idx, int messageId, const Common::String &filename,
do {
v13 = *v59;
if ((byte)(*v59 + 46) > 0x1Bu) {
- if ((unsigned __int8)(v13 + 80) > 0x1Bu) {
- if ((unsigned __int8)(v13 - 65) <= 0x19u || (unsigned __int8)(v13 - 97) <= 0x19u)
+ if ((byte)(v13 + 80) > 0x1Bu) {
+ if ((byte)(v13 - 65) <= 0x19u || (byte)(v13 - 97) <= 0x19u)
v13 = 32;
} else {
v13 -= 79;
@@ -289,7 +289,7 @@ void FontManager::BOITE(int idx, int messageId, const Common::String &filename,
if (v64 + 1 > 0) {
do {
v16 = *(v60 + v15);
- if ((unsigned __int8)v16 <= 0x1Fu)
+ if ((byte)v16 <= 0x1Fu)
v16 = 32;
_vm->_globals.largeur_boite += _vm->_objectsManager.Get_Largeur(_vm->_globals.police, (byte)v16 - 32);
++v15;
@@ -373,7 +373,7 @@ LABEL_57:
v25 = 0;
if (TRIER_TEXT[v67] < TRIER_TEXT[v25])
TRIER_TEXT[v67] = 0;
- } while (v25 != (signed __int16)v67);
+ } while (v25 != (int16)v67);
++v67;
} while (v67 <= 19);
v68 = 0;
@@ -383,7 +383,7 @@ LABEL_57:
++v68;
} while (v68 <= 19);
- if ((unsigned __int16)(Txt[idx].field3FC - 2) > 1u) {
+ if ((uint16)(Txt[idx].field3FC - 2) > 1u) {
for (i = xp - _vm->_eventsManager.start_x; _vm->_globals.largeur_boite + i > 638 && i > -2 && Txt[idx].field3FC; i -= 2)
;
Txt[idx].xp = i;
@@ -418,7 +418,7 @@ LABEL_57:
v56 = v28;
}
v29 = Txt[idx].field3FC;
- if (v29 == 1 || v29 == 3 || (unsigned __int16)(v29 - 5) <= 1u) {
+ if (v29 == 1 || v29 == 3 || (uint16)(v29 - 5) <= 1u) {
v49 = v51 * v53;
ptrd = _vm->_globals.dos_malloc2(v51 * v53);
if (ptrd == g_PTRNUL) {