From d71c89535f3d8bf9a3f0829f52b26d13c7c6c5f7 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Wed, 8 Dec 2021 17:01:20 +0300
Subject: [PATCH] headers: fix SDL_atoi()
---
include/SDL/SDL_stdinc.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/SDL/SDL_stdinc.h b/include/SDL/SDL_stdinc.h
index a6e364a..aa070c4 100644
--- a/include/SDL/SDL_stdinc.h
+++ b/include/SDL/SDL_stdinc.h
@@ -410,7 +410,7 @@ extern DECLSPEC int SDLCALL SDL_vsnprintf(char *text, size_t maxlen, const char
#define SDL_itoa(value, string, radix) SDL_ltoa((long)value, string, radix)
#define SDL_uitoa(value, string, radix) SDL_ultoa((long)value, string, radix)
-#define SDL_atoi(X) SDL_strtol(X, NULL, 0)
+#define SDL_atoi(X) SDL_strtol(X, NULL, 10)
#define SDL_atof(X) SDL_strtod(X, NULL)
#define SDL_ICONV_ERROR (size_t)-1