From 38bead0c37c61e118378053659a2874830bbb85a Mon Sep 17 00:00:00 2001 From: Le Philousophe Date: Sun, 30 Jun 2019 16:43:32 +0200 Subject: JANITORIAL/CRYOMNI3D: Fix warnings in MSVC Most of them were due to setting -1 to unsigned values Else it was bogus unintialized values --- engines/cryomni3d/sprites.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/cryomni3d/sprites.cpp') diff --git a/engines/cryomni3d/sprites.cpp b/engines/cryomni3d/sprites.cpp index 36cd439f1c..81844e7ad0 100644 --- a/engines/cryomni3d/sprites.cpp +++ b/engines/cryomni3d/sprites.cpp @@ -86,7 +86,7 @@ void Sprites::setupMapTable(const uint *table, uint size) { _map = nullptr; // Reset the reverse mapping for (Common::Array::iterator it = _cursors.begin(); it != _cursors.end(); it++) { - (*it)->_constantId = -1; + (*it)->_constantId = uint(-1); } if (table) { _map = new Common::Array(table, size); @@ -185,7 +185,7 @@ uint Sprites::calculateSpriteId(uint baseId, uint offset) const { error("Calculate sprite is out of bounds: %d/%d", baseId, _cursors.size()); } uint spriteId = _cursors[baseId]->_constantId; - if (spriteId == -1u) { + if (spriteId == uint(-1)) { error("Sprite %d is unreachable", baseId); } return spriteId; -- cgit v1.2.3