From 41de21ed7bc905055d87e362ea911a9de1f7e644 Mon Sep 17 00:00:00 2001 From: Alexander Vieth Date: Mon, 18 Mar 2024 11:34:42 +0100 Subject: [PATCH] Cast to fix compilation --- ExampleTransformation/src/ExampleTransformationPlugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ExampleTransformation/src/ExampleTransformationPlugin.cpp b/ExampleTransformation/src/ExampleTransformationPlugin.cpp index 3a2a679..077306d 100644 --- a/ExampleTransformation/src/ExampleTransformationPlugin.cpp +++ b/ExampleTransformation/src/ExampleTransformationPlugin.cpp @@ -50,7 +50,7 @@ void ExampleTransformationPlugin::transform() for (auto point : pointData) { for (std::uint32_t dimensionIndex = 0; dimensionIndex < points->getNumDimensions(); dimensionIndex++) { - point[dimensionIndex] = std::abs(point[dimensionIndex]); + point[dimensionIndex] = std::abs(static_cast(point[dimensionIndex])); } ++noPointsProcessed;