aboutsummaryrefslogtreecommitdiff
path: root/saga/isomap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'saga/isomap.cpp')
-rw-r--r--saga/isomap.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/saga/isomap.cpp b/saga/isomap.cpp
index 333f8f6c8e..311d445afd 100644
--- a/saga/isomap.cpp
+++ b/saga/isomap.cpp
@@ -867,8 +867,9 @@ void IsoMap::drawTile(Surface *ds, uint16 tileIndex, const Point &point, const L
col++;
}
while ((col < _tileClip.right) && (count < fgRunCount)) {
- assert((uint)ds->pixels <= (uint)(drawPointer + count));
- assert(((uint)ds->pixels + (_vm->getDisplayWidth() * _vm->getDisplayHeight())) > (uint)(drawPointer + count));
+ assert((byte *)ds->pixels <= (byte *)(drawPointer + count));
+ assert((byte *)((byte *)ds->pixels + (_vm->getDisplayWidth() *
+ _vm->getDisplayHeight())) > (byte *)(drawPointer + count));
drawPointer[count] = readPointer[count];
count++;
col++;