diff --git a/src/function/scalar/truncate.cpp b/src/function/scalar/truncate.cpp index 4764e0e3a8..a94886169b 100644 --- a/src/function/scalar/truncate.cpp +++ b/src/function/scalar/truncate.cpp @@ -1,3 +1,5 @@ +module; + #include #include @@ -18,7 +20,7 @@ namespace infinity { struct TruncateFunction { template - static inline bool Run(LeftType value, RightType decimals, OutputType &result) { + static inline void Run(LeftType value, RightType decimals, OutputType &result) { if (decimals > 0) { double scale = pow(10.0, decimals); result = static_cast(std::trunc(value * scale) / scale); @@ -28,7 +30,6 @@ struct TruncateFunction { double scale = pow(10.0, -decimals); result = static_cast(std::trunc(value / scale) * scale); } - return true; } };