Skip to content

Commit

Permalink
Debug|Hexen: Signed vs. unsigned integers
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed May 5, 2013
1 parent 6a1dde1 commit c21bfea
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions doomsday/plugins/common/src/p_saveg.cpp
Expand Up @@ -967,10 +967,14 @@ static void insertThingInArchive(mobj_t const *mo, ThingSerialId thingId)
thingId -= 1;
}

#if __JHEXEN__
// Only signed in Hexen.
DENG2_ASSERT(thingId >= 0);
if(thingId < 0) return; // Does this ever occur?
#endif

DENG_ASSERT(thingArchive != 0);
DENG_ASSERT(thingId >= 0 && (unsigned)thingId < thingArchiveSize);
DENG_ASSERT(thingArchive != 0);
DENG_ASSERT((unsigned)thingId < thingArchiveSize);
thingArchive[thingId] = const_cast<mobj_t *>(mo);
}

Expand Down

0 comments on commit c21bfea

Please sign in to comment.