From fc6d8b4d154049e6e3d6df9039669580f8ff747c Mon Sep 17 00:00:00 2001 From: Dennis Felsing Date: Thu, 22 Jun 2017 09:47:18 +0200 Subject: Use round_to_int because of collision with std::round --- src/base/math.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/base/math.h') diff --git a/src/base/math.h b/src/base/math.h index 1728870b..73e2fc98 100644 --- a/src/base/math.h +++ b/src/base/math.h @@ -20,7 +20,7 @@ inline float sign(float f) return f<0.0f?-1.0f:1.0f; } -inline int round(float f) +inline int round_to_int(float f) { if(f > 0) return (int)(f+0.5f); -- cgit 1.4.1