From b0a20a153c50fb08e05831fac7d4e4bc24425f60 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 5 May 2020 12:48:55 -0400 Subject: [PATCH] stdlib: Fixed compiler warnings about int vs size_t. --- src/stdlib/SDL_getenv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stdlib/SDL_getenv.c b/src/stdlib/SDL_getenv.c index fd636e74a..2bdacd343 100644 --- a/src/stdlib/SDL_getenv.c +++ b/src/stdlib/SDL_getenv.c @@ -110,7 +110,7 @@ int SDL_setenv(const char *name, const char *value, int overwrite) { int added; - int len, i; + size_t len, i; char **new_env; char *new_variable; @@ -218,7 +218,7 @@ SDL_getenv(const char *name) char * SDL_getenv(const char *name) { - int len, i; + size_t len, i; char *value; /* Input validation */