From 7b354dda7613569bb225e621ffd290a8b070e82e Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 20 Jan 2019 13:53:16 -0800 Subject: [PATCH] Fixed compiler warning --- src/joystick/SDL_gamecontroller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/joystick/SDL_gamecontroller.c b/src/joystick/SDL_gamecontroller.c index 82c85118623cf..9ac3af5fa527a 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';