Set MaxLocalsSize according to address size not register size

git-svn-id: trunk@39925 -
This commit is contained in:
pierre 2018-10-13 12:00:31 +00:00
parent 5ccced201a
commit c9c8ff1eef

View File

@ -89,8 +89,8 @@ interface
{ Maximum possible size of locals space (stack frame) }
Const
{$if defined(cpu8bitalu) or defined(cpu16bitalu)}
MaxLocalsSize = High(AWord);
{$if defined(cpu16bitaddr)}
MaxLocalsSize = High(PUint);
{$else}
MaxLocalsSize = High(longint) - 15;
{$endif}