diff --git a/Shape_detection/include/CGAL/Shape_detection/Efficient_RANSAC/Octree.h b/Shape_detection/include/CGAL/Shape_detection/Efficient_RANSAC/Octree.h index 78e8e3cb612..e7c2bbb855b 100644 --- a/Shape_detection/include/CGAL/Shape_detection/Efficient_RANSAC/Octree.h +++ b/Shape_detection/include/CGAL/Shape_detection/Efficient_RANSAC/Octree.h @@ -139,7 +139,7 @@ public: } typename Traits::FT width() const { - return m_octree.bbox(m_octree.root()).xmax() - m_octree.bbox(m_octree.root()).xmin(); + return FT(m_octree.bbox(m_octree.root()).xmax() - m_octree.bbox(m_octree.root()).xmin()); } Node locate(const typename Traits::Point_3 &p) const {