commit | 91cad4e8eae3f89191ad8e42b91c64ffbf58eeac | [log] [tgz] |
---|---|---|
author | Sam Lantinga <slouken@libsdl.org> | Sun Jan 20 13:53:16 2019 -0800 |
committer | Sam Lantinga <slouken@libsdl.org> | Sun Jan 20 13:53:16 2019 -0800 |
tree | d4f039e27c54376faec72f1d69680a8a72757c6d | |
parent | a0d2344c8ca8f2104ed33be058b92a9f24a65579 [diff] |
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';