* Patch from Bart, fixes issue #39801

(cherry picked from commit e6d0b9510b)
This commit is contained in:
Michaël Van Canneyt 2022-06-25 01:38:02 +02:00 committed by marcoonthegit
parent 476dfc097e
commit e0fc547934

View File

@ -525,6 +525,8 @@ var l1 : Longint;
begin
If NOT CheckFamily(Fam) Then
raise EConversionError.CreateFmt(SConvUnknownFamily, [IntToStr(Fam)]);
if IsZero(Value) then
raise EZeroDivide.CreateFmt(SConvFactorZero,[S]);
l1:=length(theunits);
if l1>0 then
if FindConvType(Fam, S) then