Fixed compiler warning
authorSam Lantinga <slouken@libsdl.org>
Sun, 20 Jan 2019 13:53:16 -0800
changeset 125651d67c5007110
parent 12564 04ec6bb43c4e
child 12567 92b9d6f10a29
Fixed compiler warning
src/joystick/SDL_gamecontroller.c
     1.1 --- a/src/joystick/SDL_gamecontroller.c	Sun Jan 20 22:17:41 2019 +0100
     1.2 +++ b/src/joystick/SDL_gamecontroller.c	Sun Jan 20 13:53:16 2019 -0800
     1.3 @@ -998,7 +998,7 @@
     1.4  
     1.5      /* Remove trailing comma */
     1.6      {
     1.7 -        int pos = strlen(mapping_string) - 1;
     1.8 +        int pos = (int)SDL_strlen(mapping_string) - 1;
     1.9          if (pos >= 0) {
    1.10              if (mapping_string[pos] == ',') {
    1.11                  mapping_string[pos] = '\0';