ALL: Fix some signed/unsigned comparison warnings.
This commit is contained in:
parent
dac6ac66ad
commit
442bcb7d3e
4 changed files with 8 additions and 9 deletions
|
@ -221,8 +221,8 @@ int AgiEngine::saveGame(const Common::String &fileName, const Common::String &de
|
|||
|
||||
// Save image stack
|
||||
|
||||
for (i = 0; i < _imageStack.size(); i++) {
|
||||
ImageStackElement ise = _imageStack[i];
|
||||
for (Common::Stack<ImageStackElement>::size_type j = 0; j < _imageStack.size(); ++j) {
|
||||
const ImageStackElement &ise = _imageStack[j];
|
||||
out->writeByte(ise.type);
|
||||
out->writeSint16BE(ise.parm1);
|
||||
out->writeSint16BE(ise.parm2);
|
||||
|
|
|
@ -477,7 +477,7 @@ void Hotspots::call(uint16 offset) {
|
|||
|
||||
_shouldPush = true;
|
||||
|
||||
int16 stackSize = _stack.size();
|
||||
Common::Stack<StackEntry>::size_type stackSize = _stack.size();
|
||||
|
||||
_vm->_inter->funcBlock(0);
|
||||
|
||||
|
|
|
@ -31,10 +31,10 @@ DECLARE_SINGLETON(Graphics::CursorManager);
|
|||
namespace Graphics {
|
||||
|
||||
CursorManager::~CursorManager() {
|
||||
for (int i = 0; i < _cursorStack.size(); ++i)
|
||||
for (Common::Stack<Cursor *>::size_type i = 0; i < _cursorStack.size(); ++i)
|
||||
delete _cursorStack[i];
|
||||
_cursorStack.clear();
|
||||
for (int i = 0; i < _cursorPaletteStack.size(); ++i)
|
||||
for (Common::Stack<Palette *>::size_type i = 0; i < _cursorPaletteStack.size(); ++i)
|
||||
delete _cursorPaletteStack[i];
|
||||
_cursorPaletteStack.clear();
|
||||
}
|
||||
|
|
|
@ -188,7 +188,7 @@ bool GuiManager::loadNewTheme(Common::String id, ThemeEngine::GraphicsMode gfx,
|
|||
}
|
||||
|
||||
// refresh all dialogs
|
||||
for (int i = 0; i < _dialogStack.size(); ++i)
|
||||
for (DialogStack::size_type i = 0; i < _dialogStack.size(); ++i)
|
||||
_dialogStack[i]->reflowLayout();
|
||||
|
||||
// We need to redraw immediately. Otherwise
|
||||
|
@ -202,7 +202,6 @@ bool GuiManager::loadNewTheme(Common::String id, ThemeEngine::GraphicsMode gfx,
|
|||
}
|
||||
|
||||
void GuiManager::redraw() {
|
||||
int i;
|
||||
ThemeEngine::ShadingStyle shading;
|
||||
|
||||
if (_redrawStatus == kRedrawDisabled || _dialogStack.empty())
|
||||
|
@ -223,7 +222,7 @@ void GuiManager::redraw() {
|
|||
_theme->clearAll();
|
||||
_theme->openDialog(true, ThemeEngine::kShadingNone);
|
||||
|
||||
for (i = 0; i < _dialogStack.size() - 1; i++)
|
||||
for (DialogStack::size_type i = 0; i < _dialogStack.size() - 1; i++)
|
||||
_dialogStack[i]->drawDialog();
|
||||
|
||||
_theme->finishBuffering();
|
||||
|
@ -515,7 +514,7 @@ void GuiManager::screenChange() {
|
|||
_theme->refresh();
|
||||
|
||||
// refresh all dialogs
|
||||
for (int i = 0; i < _dialogStack.size(); ++i) {
|
||||
for (DialogStack::size_type i = 0; i < _dialogStack.size(); ++i) {
|
||||
_dialogStack[i]->reflowLayout();
|
||||
}
|
||||
// We need to redraw immediately. Otherwise
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue