mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-17 11:59:30 +02:00
* in the Win64 ABI all const record parameters are passed by reference
This commit is contained in:
parent
8498eacdeb
commit
d9ec917586
@ -173,7 +173,7 @@ begin
|
||||
else
|
||||
val := PtrUInt(aArgs[i].ValueRef);
|
||||
tkRecord:
|
||||
if td^.RecSize in [1, 2, 4, 8] then
|
||||
if (td^.RecSize in [1, 2, 4, 8]) and not (pfConst in aArgs[i].Info.ParamFlags) then
|
||||
val := PPtrUInt(aArgs[i].ValueRef)^
|
||||
else
|
||||
val := PtrUInt(aArgs[i].ValueRef);
|
||||
|
Loading…
Reference in New Issue
Block a user