From 47d3e96b43b49ce3d499695230c8531838cfa153 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Sat, 18 Dec 2021 14:01:02 +0300 Subject: [PATCH] SDL_joystick.c: (unsigned char) cast to SDL_tolower() parameters. --- src/joystick/SDL_joystick.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/joystick/SDL_joystick.c b/src/joystick/SDL_joystick.c index cfcad6168..fe6128c93 100644 --- a/src/joystick/SDL_joystick.c +++ b/src/joystick/SDL_joystick.c @@ -1713,7 +1713,7 @@ PrefixMatch(const char *a, const char *b) { int matchlen = 0; while (*a && *b) { - if (SDL_tolower(*a++) == SDL_tolower(*b++)) { + if (SDL_tolower((unsigned char) *a++) == SDL_tolower((unsigned char) *b++)) { ++matchlen; } else { break;