From abbebe4ed7289e2d5dc2f19e6d63ae59f0af123d Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Thu, 4 May 2023 07:42:06 +0100 Subject: [PATCH] Fix for conversion warning --- Number_types/include/CGAL/cpp_float.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Number_types/include/CGAL/cpp_float.h b/Number_types/include/CGAL/cpp_float.h index 402bb72ed11..8e19a1b27e4 100644 --- a/Number_types/include/CGAL/cpp_float.h +++ b/Number_types/include/CGAL/cpp_float.h @@ -109,7 +109,7 @@ public: cpp_float(const Mantissa& man, int exp) : man(man), exp(exp) { - CGAL_HISTOGRAM_PROFILER("size (man/exp)", man.backend().size()); + CGAL_HISTOGRAM_PROFILER("size (man/exp)", static_cast(man.backend().size())); } #ifndef CGAL_CPPF @@ -117,7 +117,7 @@ public: cpp_float(const Expression& man, int exp) :man(man), exp(exp) { - CGAL_HISTOGRAM_PROFILER("size (expression/exp)", this->man.backend().size()); + CGAL_HISTOGRAM_PROFILER("size (expression/exp)", static_cast(this->man.backend().size())); } #endif @@ -179,7 +179,7 @@ public: // std::cout << "m = " << m << " * 2^" << exp << std::endl; // fmt(m); - CGAL_HISTOGRAM_PROFILER("size when constructed from double", man.backend().size()); + CGAL_HISTOGRAM_PROFILER("size when constructed from double", static_cast(man.backend().size())); }