diff options
author | Eugene Sandulenko | 2005-07-09 21:29:54 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2005-07-09 21:29:54 +0000 |
commit | 02d28a96ceb5c8c60aea82166b1ad92f83d660d2 (patch) | |
tree | 47f0d4b0f12804f49e143a191ee43f7e1b4a2190 /saga/isomap.cpp | |
parent | 237eefba64129b28f9815303fc8a5299c3cfb448 (diff) | |
download | scummvm-rg350-02d28a96ceb5c8c60aea82166b1ad92f83d660d2.tar.gz scummvm-rg350-02d28a96ceb5c8c60aea82166b1ad92f83d660d2.tar.bz2 scummvm-rg350-02d28a96ceb5c8c60aea82166b1ad92f83d660d2.zip |
Fix bug #1235211: "SAGA: Fails to compile with gcc4.0"
svn-id: r18526
Diffstat (limited to 'saga/isomap.cpp')
-rw-r--r-- | saga/isomap.cpp | 5 |
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++; |