FpDebug: fix range check error with enum values (negative ord value). Issue #41240

(cherry picked from commit d93235de52)
This commit is contained in:
Martin 2024-11-17 13:15:26 +01:00
parent 9512487328
commit bcd6d2ced6

View File

@ -3126,7 +3126,7 @@ end;
function TFpValueDwarfEnumMember.GetAsCardinal: QWord;
begin
Result := FOwnerVal.OrdinalValue;
Result := QWord(FOwnerVal.OrdinalValue);
end;
function TFpValueDwarfEnumMember.GetAsInteger: Int64;