Parcourir la source

Use the right kind of 0

Sam Lantinga il y a 3 ans
Parent
commit
dc2a682a82
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/stdlib/SDL_string.c

+ 1 - 1
src/stdlib/SDL_string.c

@@ -1364,7 +1364,7 @@ SDL_vsscanf(const char *text, const char *fmt, va_list ap)
                     break;
                 case 'f':
                     {
-                        double value = 0;
+                        double value = 0.0;
                         advance = SDL_ScanFloat(text, &value);
                         text += advance;
                         if (advance && !suppress) {