SCP: Add support for unsigned int parsing (t_value) without a range limit
This commit is contained in:
parent
b15f753adc
commit
e39965a9f6
1 changed files with 1 additions and 1 deletions
2
scp.c
2
scp.c
|
@ -8176,7 +8176,7 @@ CONST char *tptr;
|
|||
|
||||
*status = SCPE_OK;
|
||||
val = strtotv ((CONST char *)cptr, &tptr, radix);
|
||||
if ((cptr == tptr) || (val > max))
|
||||
if ((cptr == tptr) || ((max > 0) && (val > max)))
|
||||
*status = SCPE_ARG;
|
||||
else {
|
||||
while (sim_isspace (*tptr)) tptr++;
|
||||
|
|
Loading…
Add table
Reference in a new issue