* Converted assertion into an internal error

This commit is contained in:
J. Gareth "Curious Kit" Moreton 2022-08-18 07:31:37 +01:00 committed by FPK
parent 32f4931fd2
commit 131c1e1b93

View File

@ -412,7 +412,10 @@ uses
ad,anc,delta,q1,r1,q2,r2,t: aWord;
two_N_minus_1: aWord;
begin
assert((d<-1) or (d>1));
if (d>=-1) and (d<=1) then
{ Division by unity, -1 or 0 should have been caught earlier }
InternalError(2022081801);
two_N_minus_1:=aWord(1) shl (N-1);
ad:=abs(d);