mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-09 17:16:04 +02:00
PascalScript: fix for 32 bit object.create
git-svn-id: trunk@56161 -
This commit is contained in:
parent
c3ae0f3967
commit
f7a5ad2332
@ -10247,7 +10247,11 @@ begin
|
|||||||
CurrStack := Cardinal(Stack.Count) - Cardinal(length(s)) -1;
|
CurrStack := Cardinal(Stack.Count) - Cardinal(length(s)) -1;
|
||||||
if s[1] = #0 then inc(CurrStack);
|
if s[1] = #0 then inc(CurrStack);
|
||||||
{$IFnDEF PS_NOINT64}
|
{$IFnDEF PS_NOINT64}
|
||||||
|
{$IFDEF cpu32}
|
||||||
|
IntVal := CreateHeapVariant(Caller.FindType2(btU32));
|
||||||
|
{$ELSE}
|
||||||
IntVal := CreateHeapVariant(Caller.FindType2(btS64));
|
IntVal := CreateHeapVariant(Caller.FindType2(btS64));
|
||||||
|
{$ENDIF}
|
||||||
{$ELSE}
|
{$ELSE}
|
||||||
IntVal := CreateHeapVariant(Caller.FindType2(btU32));
|
IntVal := CreateHeapVariant(Caller.FindType2(btU32));
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
Loading…
Reference in New Issue
Block a user