Regression test should succeed even if char is an unsigned type

This commit is contained in:
Michael Tautschnig 2018-07-06 18:55:45 +01:00
parent 8187bdd165
commit cd6127a3e6
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ int main()
{
char ch;
unsigned state=0;
while((ch=getc(stdin))!=-1)
while((ch = getc(stdin)) != (char)-1)
{
switch(state)
{