mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-13 13:09:16 +02:00
* Patch from Bart, fixes issue #39801
(cherry picked from commit e6d0b9510b
)
This commit is contained in:
parent
476dfc097e
commit
e0fc547934
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user