An unsigned integer can not be smaller than 0 so there's no point in checking

actorid
Jan-Peter Nilsson 14 years ago
parent d68141d203
commit f65f210149

@ -490,10 +490,6 @@ public:
// Adjust number of record bytes left
mCtx.leftRec -= mCtx.leftSub + 4;
// Check that sizes added up
if(mCtx.leftRec < 0)
fail("Not enough bytes left in record for this subrecord.");
}
/** Get sub header and check the size

Loading…
Cancel
Save