nk_iceilf now returns correct value when x >= 0

This commit is contained in:
StillWarter 2017-08-19 12:45:00 +08:00
parent 2a406caf7f
commit e454fcf8d1
1 changed files with 1 additions and 1 deletions

View File

@ -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;