mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 15:47:53 +02:00
* proper handling for boolean results (especially Boolean64 and QWordBool) in System.Rtti.Invoke
This commit is contained in:
parent
f8c09568d8
commit
12db8a59b5
@ -315,6 +315,24 @@ begin
|
||||
end;
|
||||
tkQWord, tkInt64:
|
||||
PUInt64(aResultValue)^ := PUInt64(@ResultBuf)^;
|
||||
tkBool:
|
||||
begin
|
||||
td := GetTypeData(aResultType);
|
||||
case td^.OrdType of
|
||||
otUByte,
|
||||
otSByte:
|
||||
PUInt8(aResultValue)^ := PUInt8(@ResultBuf)^;
|
||||
otUWord,
|
||||
otSWord:
|
||||
PUInt16(aResultValue)^ := PUInt16(@ResultBuf)^;
|
||||
otULong,
|
||||
otSLong:
|
||||
PUInt32(aResultValue)^ := PUInt32(@ResultBuf)^;
|
||||
otUQWord,
|
||||
otSQWord:
|
||||
PUInt64(aResultValue)^ := PUInt64(@ResultBuf)^;
|
||||
end;
|
||||
end;
|
||||
else
|
||||
PUInt32(aResultValue)^ := PUInt32(@ResultBuf)^;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user