mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-12 23:54:35 +00:00
- 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:
parent
b1cb044a15
commit
68f48f3830
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue