diff --git a/src/stdlib/SDL_stdlib.c b/src/stdlib/SDL_stdlib.c index ccd758175..b6dc32ab9 100644 --- a/src/stdlib/SDL_stdlib.c +++ b/src/stdlib/SDL_stdlib.c @@ -148,7 +148,7 @@ SDL_ceilf(float x) #if defined(HAVE_CEILF) return ceilf(x); #else - return (float)SDL_ceil((float)x); + return (float)SDL_ceil((double)x); #endif }