Pārlūkot izejas kodu

Set MaxLocalsSize according to address size not register size

git-svn-id: trunk@39925 -
pierre 6 gadi atpakaļ
vecāks
revīzija
c9c8ff1eef
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      compiler/globtype.pas

+ 2 - 2
compiler/globtype.pas

@@ -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}