Use int for EOF

This commit is contained in:
Devine Lu Linvega 2024-01-12 09:57:17 -08:00
parent c1eae2f321
commit eee39a3268
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ main(int argc, char **argv)
console_input(&u, '\n', i == argc - 1 ? 0x4 : 0x3); console_input(&u, '\n', i == argc - 1 ? 0x4 : 0x3);
} }
while(!u.dev[0x0f]) { while(!u.dev[0x0f]) {
char c = fgetc(stdin); int c = fgetc(stdin);
if(c == EOF) { if(c == EOF) {
console_input(&u, 0x00, 0x4); console_input(&u, 0x00, 0x4);
break; break;