Commit 7b354dda7613569bb225e621ffd290a8b070e82e

Sam Lantinga 2019-01-20T13:53:16

Fixed compiler warning

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/joystick/SDL_gamecontroller.c b/src/joystick/SDL_gamecontroller.c
index 82c8511..9ac3af5 100644
--- a/src/joystick/SDL_gamecontroller.c
+++ b/src/joystick/SDL_gamecontroller.c
@@ -998,7 +998,7 @@ static ControllerMapping_t *SDL_CreateMappingForAndroidController(const char *na
 
     /* Remove trailing comma */
     {
-        int pos = strlen(mapping_string) - 1;
+        int pos = (int)SDL_strlen(mapping_string) - 1;
         if (pos >= 0) {
             if (mapping_string[pos] == ',') {
                 mapping_string[pos] = '\0';