mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 10:59:25 +02:00
FpDebug: fix range check error with enum values (negative ord value). Issue #41240
(cherry picked from commit d93235de52
)
This commit is contained in:
parent
9512487328
commit
bcd6d2ced6
@ -3126,7 +3126,7 @@ end;
|
|||||||
|
|
||||||
function TFpValueDwarfEnumMember.GetAsCardinal: QWord;
|
function TFpValueDwarfEnumMember.GetAsCardinal: QWord;
|
||||||
begin
|
begin
|
||||||
Result := FOwnerVal.OrdinalValue;
|
Result := QWord(FOwnerVal.OrdinalValue);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TFpValueDwarfEnumMember.GetAsInteger: Int64;
|
function TFpValueDwarfEnumMember.GetAsInteger: Int64;
|
||||||
|
Loading…
Reference in New Issue
Block a user