|
@@ -425,7 +425,7 @@ implementation
|
|
{ Extend the temp }
|
|
{ Extend the temp }
|
|
if direction=-1 then
|
|
if direction=-1 then
|
|
begin
|
|
begin
|
|
- if qword(align(-lasttemp-alignmismatch,alignment))+size+alignmismatch>MaxLocalsSize then
|
|
|
|
|
|
+ if Int64(align(-lasttemp-alignmismatch,alignment))+size+alignmismatch>MaxLocalsSize then
|
|
begin
|
|
begin
|
|
CGMessage(cg_e_localsize_too_big);
|
|
CGMessage(cg_e_localsize_too_big);
|
|
size:=0; // Prevent further range check errors
|
|
size:=0; // Prevent further range check errors
|
|
@@ -436,7 +436,7 @@ implementation
|
|
else
|
|
else
|
|
begin
|
|
begin
|
|
tl^.pos:=align(lasttemp+alignmismatch,alignment)-alignmismatch;
|
|
tl^.pos:=align(lasttemp+alignmismatch,alignment)-alignmismatch;
|
|
- if qword(tl^.pos)+size>MaxLocalsSize then
|
|
|
|
|
|
+ if Int64(tl^.pos)+size>MaxLocalsSize then
|
|
begin
|
|
begin
|
|
CGMessage(cg_e_localsize_too_big);
|
|
CGMessage(cg_e_localsize_too_big);
|
|
size:=0; // Prevent further range check errors
|
|
size:=0; // Prevent further range check errors
|