Explorar o código

fix SDL_atoi()

fixes https://github.com/libsdl-org/SDL/issues/4811
Ozkan Sezer %!s(int64=4) %!d(string=hai) anos
pai
achega
3ea35fe5bb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/stdlib/SDL_string.c

+ 1 - 1
src/stdlib/SDL_string.c

@@ -932,7 +932,7 @@ int SDL_atoi(const char *string)
 #ifdef HAVE_ATOI
     return atoi(string);
 #else
-    return SDL_strtol(string, NULL, 0);
+    return SDL_strtol(string, NULL, 10);
 #endif /* HAVE_ATOI */
 }