- removed bogus errno check from Dehacked parser.

This checked errno without first confirming that there has been an error, it is also pointless because the value range check will automatically catch the error case as well.
This commit is contained in:
Christoph Oelckers 2022-12-08 09:50:06 +01:00
parent b1cb044a15
commit 68f48f3830

View file

@ -1142,7 +1142,7 @@ static int PatchThing (int thingy)
size_t linelen = strlen (Line1);
// Supported value range is all valid representations of signed int and unsigned int.
if (errno == ERANGE || val < INT_MIN || val > UINT_MAX)
if (val < INT_MIN || val > UINT_MAX)
{
Printf("Bad numeric constant %s for %s\n", Line2, Line1);
}