mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-04 19:50:54 +02:00
* Fix for ConvUtils.CompatibleConversionTypes by Bart, resolves bug #39775
This commit is contained in:
parent
b0b034805c
commit
330b0b1157
@ -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