Browse Source

stdlib: Fixed compiler warnings about int vs size_t.

Ryan C. Gordon 5 years ago
parent
commit
b0a20a153c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/stdlib/SDL_getenv.c

+ 2 - 2
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 */