mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 20:39:25 +02:00
* Fix for ConvUtils.CompatibleConversionTypes by Bart, resolves bug #39775
(cherry picked from commit 330b0b1157
)
This commit is contained in:
parent
3faa984635
commit
745a48ac44
@ -333,7 +333,9 @@ end;
|
||||
function CompatibleConversionTypes(const AFrom, ATo: TConvType): Boolean;
|
||||
|
||||
begin
|
||||
result:=ConvTypeToFamily(AFrom)=ConvTypeToFamily(ATo);
|
||||
//ConvTypeToFamily returns TConvFamily(0) if the TConvType is not registerd, but 0 is a valid value for a TConvFamily
|
||||
result:= (AFrom<length(TheUnits)) and (ATo<length(TheUnits)) and
|
||||
(ConvTypeToFamily(AFrom)=ConvTypeToFamily(ATo));
|
||||
end;
|
||||
|
||||
Function RegisterConversionFamily(Const S:String):TConvFamily;
|
||||
|
Loading…
Reference in New Issue
Block a user