diff --git a/src/events/SDL_keyboard.c b/src/events/SDL_keyboard.c index 0f7adea2d..f01b90a08 100644 --- a/src/events/SDL_keyboard.c +++ b/src/events/SDL_keyboard.c @@ -1063,7 +1063,7 @@ int SDL_SendKeyboardText(const char *text) int posted; /* Don't post text events for unprintable characters */ - if (!(*text & 0x80) && SDL_iscntrl(*text)) { + if (SDL_iscntrl((unsigned char)*text)) { return 0; }