From 7e9a6ec0772eef7ae8b55b9b04670e99ab31cdbe Mon Sep 17 00:00:00 2001 From: paulhoux Date: Wed, 27 Dec 2023 12:56:33 +0100 Subject: [PATCH] Fixed a stupid oversight. --- include/cinder/CinderMath.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/cinder/CinderMath.h b/include/cinder/CinderMath.h index 509162bb86..b608dcca66 100644 --- a/include/cinder/CinderMath.h +++ b/include/cinder/CinderMath.h @@ -143,10 +143,10 @@ CI_API inline float roundToZero( float n, float epsilon = float(EPSILON) ) return n; } -CI_API inline float roundToZero( double n, double epsilon = EPSILON ) +CI_API inline double roundToZero( double n, double epsilon = EPSILON ) { if( std::abs( n ) < epsilon ) - return 0.0f; + return 0.0; return n; }