From 6a42ac773329e2f778ca74e8867e3266ea1340eb Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Tue, 12 Aug 2025 18:09:27 +0500 Subject: [PATCH] CgalSmoothAngleDegrees - fix compilation warnings warning C4244: 'initializing': conversion from 'double' to 'const int', possible loss of data --- src/ifcgeom/ConversionSettings.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcgeom/ConversionSettings.h b/src/ifcgeom/ConversionSettings.h index 2589820ab6..ef3b69c707 100644 --- a/src/ifcgeom/ConversionSettings.h +++ b/src/ifcgeom/ConversionSettings.h @@ -367,7 +367,7 @@ namespace ifcopenshell { struct CgalSmoothAngleDegrees : public SettingBase { static constexpr const char* const name = "cgal-smooth-angle-degrees"; static constexpr const char* const description = "Angle in degrees under which adjacent facets will have averaged vertex normals in CGAL output. NB irrespective of original IFC geometry types. Defaults to -1 to disable smoothing."; - static constexpr int defaultvalue = -1.; + static constexpr int defaultvalue = -1; }; struct KeepBoundingBoxes : public SettingBase {