From e57d8fde1c85d7d7e670c3136203fc083542363e Mon Sep 17 00:00:00 2001 From: Jiri Pittner Date: Thu, 10 Jun 2021 17:46:35 +0200 Subject: [PATCH] minor fix --- polynomial.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polynomial.cc b/polynomial.cc index 5fd52f8..1b14230 100644 --- a/polynomial.cc +++ b/polynomial.cc @@ -26,7 +26,7 @@ namespace LA { template void Polynomial::polydiv(const Polynomial &rhs, Polynomial &q, Polynomial &r) const { -if(rhs[rhs.degree()]==0) laerror("division by a polynomial with zero leading coefficient - simplify it first"); +if(rhs[rhs.degree()]==(T)0) laerror("division by a polynomial with zero leading coefficient - simplify it first"); if(rhs.degree()==0) //scalar division { q= *this/rhs[0];