PascalScript: fix for 32 bit object.create

git-svn-id: trunk@56161 -
This commit is contained in:
martin 2017-10-23 03:11:52 +00:00
parent c3ae0f3967
commit f7a5ad2332

View File

@ -10247,7 +10247,11 @@ begin
CurrStack := Cardinal(Stack.Count) - Cardinal(length(s)) -1;
if s[1] = #0 then inc(CurrStack);
{$IFnDEF PS_NOINT64}
{$IFDEF cpu32}
IntVal := CreateHeapVariant(Caller.FindType2(btU32));
{$ELSE}
IntVal := CreateHeapVariant(Caller.FindType2(btS64));
{$ENDIF}
{$ELSE}
IntVal := CreateHeapVariant(Caller.FindType2(btU32));
{$ENDIF}