(Based on the comments on that commit)

Basically, this ensures it will work even if the compiler (for whatever reason) decides plain char is unsigned.
This commit is contained in:
Celtic Minstrel 2017-07-10 20:43:27 -04:00 committed by GitHub
parent b68a23c480
commit c2a53a7fb3

View file

@ -557,7 +557,7 @@ static void event_execute( const SDL_Event& event, command_executor* executor)
return;
}
} else if(event.type == SDL_TEXTINPUT && (
(event.text.text[0] <= '\0') ||
static_cast<signed char>(event.text.text[0]) <= '\0' ||
(event.text.text[1] != '\0')))
{
return;