Set MaxBracesArg constant value to $7FFF - 1 to fit into a 16-bit signed integer, for a 16-bit CPU

This commit is contained in:
Pierre Muller 2025-05-25 22:08:54 +00:00
parent aed26f7aed
commit ae74e9f8cd

View File

@ -959,7 +959,11 @@ const
RegExprLineSeparatorsSet = [$d, $a, $b, $c] {$IFDEF UnicodeRE} + [$85] {$ENDIF};
RegExprHorzSeparatorsSet = [9, $20, $A0];
{$ifdef CPU16}
MaxBracesArg = $7FFF - 1;
{$else}
MaxBracesArg = $7FFFFFFF - 1; // max value for {n,m} arguments
{$endif}
type
TRENextOff = PtrInt;