mirror of
https://github.com/simh/simh.git
synced 2026-01-25 19:56:25 +00:00
SCP: Fix regression which disabled limit check when parsing unsigned integers
This affected unit and tmxr line checks when there was only one unit or line.
This commit is contained in:
@@ -1313,7 +1313,7 @@ t_value stop_time;
|
||||
|
||||
if (cptr == NULL)
|
||||
return SCPE_ARG;
|
||||
stop_time = get_uint (cptr, 10, 0, &r);
|
||||
stop_time = get_uint (cptr, 10, T_VALUE_MAX, &r);
|
||||
if (r != SCPE_OK)
|
||||
return r;
|
||||
if (stop_time <= (t_value)sim_gtime())
|
||||
|
||||
Reference in New Issue
Block a user