From f57e23989be272512a02ecfb1f027a5646184b42 Mon Sep 17 00:00:00 2001 From: Edoardo Prezioso Date: Thu, 16 Jul 2015 19:54:27 +0200 Subject: [PATCH] - Fixed a dangerous typo in xs_Float code. The function 'xs_CeilToUInt' would call itself, leading to infinite loop, due to a typo. It should call 'xs_CeilToInt' instead. --- src/xs_Float.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xs_Float.h b/src/xs_Float.h index 19300b2fc..1f57f9205 100644 --- a/src/xs_Float.h +++ b/src/xs_Float.h @@ -209,7 +209,7 @@ finline static uint32 xs_FloorToUInt(real64 val) finline static uint32 xs_CeilToUInt(real64 val) { - return (uint32)xs_CeilToUInt(val); + return (uint32)xs_CeilToInt(val); } finline static uint32 xs_RoundToUInt(real64 val)