diff --git a/src/stdlib/SDL_string.c b/src/stdlib/SDL_string.c index 82d5232fc..fd3fba3f7 100644 --- a/src/stdlib/SDL_string.c +++ b/src/stdlib/SDL_string.c @@ -1357,7 +1357,6 @@ SDL_PrintFloat(char *text, size_t maxlen, SDL_FormatInfo *info, double arg) if (arg) { /* This isn't especially accurate, but hey, it's easy. :) */ - double precision = 1.0; unsigned long value; if (arg < 0) { @@ -1386,9 +1385,6 @@ SDL_PrintFloat(char *text, size_t maxlen, SDL_FormatInfo *info, double arg) if (info->precision < 0) { info->precision = 6; } - for (i = 0; i < info->precision; ++i) { - precision *= 0.1; - } if (info->force_type || info->precision > 0) { int mult = 10; if (left > 1) {