From e454fcf8d136cdaff4af416ae740e34d1de7cd53 Mon Sep 17 00:00:00 2001 From: StillWarter Date: Sat, 19 Aug 2017 12:45:00 +0800 Subject: [PATCH] nk_iceilf now returns correct value when x >= 0 --- nuklear.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nuklear.h b/nuklear.h index e3244ac..693fa9c 100644 --- a/nuklear.h +++ b/nuklear.h @@ -5067,7 +5067,7 @@ nk_iceilf(float x) { if (x >= 0) { int i = (int)x; - return i; + return (x > i) ? i+1: i; } else { int t = (int)x; float r = x - (float)t;