mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-05 04:18:31 +02:00
decrease restarts_to_go only if restart is enabled (solves runtime error if compiled with range checks)
This commit is contained in:
parent
0d988f2c96
commit
ec5b4d458e
@ -1240,7 +1240,8 @@ begin
|
||||
end;
|
||||
|
||||
{ Account for restart interval (no-op if not using restarts) }
|
||||
Dec(entropy^.restarts_to_go);
|
||||
if (cinfo^.restart_interval <> 0) then
|
||||
Dec(entropy^.restarts_to_go);
|
||||
|
||||
decode_mcu := TRUE;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user