Skip to content
Permalink
Browse files

Fixed compiler warning

  • Loading branch information
slouken committed Jan 20, 2019
1 parent 8ad4000 commit 7b354dda7613569bb225e621ffd290a8b070e82e
Showing with 1 addition and 1 deletion.
  1. +1 −1 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';

0 comments on commit 7b354dd

Please sign in to comment.