Fixed compiler warning
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 @@
 
     /* 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';