mirror of https://github.com/CGAL/cgal
Remove the last -Wconversion warnings from all Mesh_3
I have only compiled tests and examples. Maybe the Mesh_3 plugin of the 3D demo has other warnings.
This commit is contained in:
parent
d1c5eb655b
commit
e46cd8ad1a
|
|
@ -503,7 +503,7 @@ Image_3::labellized_trilinear_interpolation
|
|||
static_cast<unsigned int>(lc));
|
||||
|
||||
if(lc == 1) {
|
||||
return labels[0];
|
||||
return static_cast<Target_type>(labels[0]);
|
||||
}
|
||||
|
||||
double best_value = 0.;
|
||||
|
|
@ -521,7 +521,7 @@ Image_3::labellized_trilinear_interpolation
|
|||
}
|
||||
}
|
||||
// CGAL_assertion(best_value > 0.5);
|
||||
return best;
|
||||
return static_cast<Target_type>(best);
|
||||
}
|
||||
|
||||
} // end namespace CGAL
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ int main(int argc, char*argv[])
|
|||
iso_values.insert(2.9f);
|
||||
} else {
|
||||
for(int i = 2; i < argc; ++i) {
|
||||
iso_values.insert(std::atof(argv[i]));
|
||||
iso_values.insert(static_cast<float>(std::atof(argv[i])));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue