Fixed compiler warning

This commit is contained in:
Sam Lantinga 2019-01-20 13:53:16 -08:00
parent a0d2344c8c
commit 91cad4e8ea

View file

@ -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';