mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
Fixed compiler warning
This commit is contained in:
parent
8ad4000ce2
commit
7b354dda76
@ -998,7 +998,7 @@ static ControllerMapping_t *SDL_CreateMappingForAndroidController(const char *na
|
|||||||
|
|
||||||
/* Remove trailing comma */
|
/* Remove trailing comma */
|
||||||
{
|
{
|
||||||
int pos = strlen(mapping_string) - 1;
|
int pos = (int)SDL_strlen(mapping_string) - 1;
|
||||||
if (pos >= 0) {
|
if (pos >= 0) {
|
||||||
if (mapping_string[pos] == ',') {
|
if (mapping_string[pos] == ',') {
|
||||||
mapping_string[pos] = '\0';
|
mapping_string[pos] = '\0';
|
||||||
|
Loading…
Reference in New Issue
Block a user