From c8482b3cff8b5e3714b1ab9f67275aeed35c4744 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sat, 1 Aug 2015 23:20:11 -0700 Subject: [PATCH] Fixed fround. --- include/bx/fpumath.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/bx/fpumath.h b/include/bx/fpumath.h index deaaa1d..0aa92c8 100644 --- a/include/bx/fpumath.h +++ b/include/bx/fpumath.h @@ -31,7 +31,7 @@ namespace bx inline float fround(float _f) { - return float(int(_f) ); + return floorf(_f + 0.5f); } inline float fmin(float _a, float _b)