From c7635c2f0857d7d3f296ee3ac65c17b7e593f3a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B8=85=E6=AD=8C?= Date: Thu, 19 Apr 2018 05:35:21 +0800 Subject: [PATCH] Fix the problem that can't not compile with gcc6.3 Delete the function int round(float) in src/base/math.h and every thing is going well. --- src/base/math.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/base/math.h b/src/base/math.h index d58dbf1..8a98eb7 100644 --- a/src/base/math.h +++ b/src/base/math.h @@ -20,12 +20,6 @@ inline float sign(float f) return f<0.0f?-1.0f:1.0f; } -inline int round(float f) -{ - if(f > 0) - return (int)(f+0.5f); - return (int)(f-0.5f); -} template inline T mix(const T a, const T b, TB amount)