Commit 41ce191d authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

getchar() returns int, not char

CID 319110
parent bea7394e
......@@ -113,7 +113,7 @@ while(l>-1L) {
if(pause && lncntr>=20) {
printf("More (Y/n) ? ");
fflush(stdout);
char ch = getchar();
int ch = getchar();
if(ch == CTRL_C || toupper(ch) == 'N')
break;
printf("\r");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment