From d841ddab84ba6a3e0ddb4ea3374d620fefd4d13c Mon Sep 17 00:00:00 2001 From: skyjake Date: Sun, 5 May 2013 20:24:14 +0300 Subject: [PATCH] Debug|Hexen: Signed vs. unsigned integers --- doomsday/plugins/common/src/p_saveg.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/doomsday/plugins/common/src/p_saveg.cpp b/doomsday/plugins/common/src/p_saveg.cpp index 77c983d823..00e286cb2c 100644 --- a/doomsday/plugins/common/src/p_saveg.cpp +++ b/doomsday/plugins/common/src/p_saveg.cpp @@ -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(mo); }