Skip to content
Snippets Groups Projects
Commit dc62a8c3 authored by Otmane Lahlou's avatar Otmane Lahlou
Browse files

ENH: ambiguous call to vcl_sqrt in Visual

parent 89e49b6b
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,7 @@ public:
normalizeInPlace(vecA);
normalizeInPlace(vecB);
return static_cast<TOutput>( - vcl_log(PhiMI(vecA, vecB)+epsilon) );
return static_cast<TOutput>( - vcl_log( static_cast<double>(PhiMI(vecA, vecB)+epsilon) ));
}
protected:
......@@ -92,7 +92,7 @@ protected:
for ( itx = vx.begin(); itx < vx.end(); ++itx)
{
(*itx) = ((*itx)-Ex)/vcl_sqrt(Vx);
(*itx) = ((*itx)-Ex)/static_cast<TOutput>(vcl_sqrt(static_cast<double>(Vx)));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment