Skip to content

Commit

Permalink
clean up todo
Browse files Browse the repository at this point in the history
  • Loading branch information
mevdschee committed Jun 29, 2019
1 parent 1c508e3 commit 72725ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 2048.c
Expand Up @@ -380,8 +380,8 @@ int main(int argc, char *argv[]) {
setBufferedInput(false);
while (true) {
c=getchar();
if (c == -1){ //TODO: maybe replace this -1 with a pre-defined constant(if it's in one of header files)
puts("\nError! Cannot read keyboard input!");
if (c == -1){
puts("\nError! Cannot read keyboard input!");
break;
}
switch(c) {
Expand Down

0 comments on commit 72725ba

Please sign in to comment.