Skip to content
Snippets Groups Projects
Commit 17460b17 authored by Cyrille Valladeau's avatar Cyrille Valladeau
Browse files

ENH : compilation error:missing cast

parent 7c58dc6d
Branches
Tags
No related merge requests found
......@@ -271,7 +271,7 @@ RegionImageToRectangularPathListFilter<TInputImage,TOutputPath>
if (al1 != 0)
width = vcl_fabs(al2 / al1) * length;
else { // l1 == 0 and l2 == 0
length = width = vcl_sqrt(n); // should happen only when n == 1 anyway
length = width = vcl_sqrt(static_cast<double>(n)); // should happen only when n == 1 anyway
}
} else {
length = n; // Arbitrary representation for degenerate case
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment