mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Enable and fix -Wdouble-conversion warnings
This commit is contained in:
@@ -880,9 +880,9 @@ struct scalar_sign_op<Scalar,true> {
|
||||
{
|
||||
typedef typename NumTraits<Scalar>::Real real_type;
|
||||
real_type aa = numext::abs(a);
|
||||
if (aa==0)
|
||||
if (aa==real_type(0))
|
||||
return Scalar(0);
|
||||
aa = 1./aa;
|
||||
aa = real_type(1)/aa;
|
||||
return Scalar(real(a)*aa, imag(a)*aa );
|
||||
}
|
||||
//TODO
|
||||
|
||||
Reference in New Issue
Block a user