| 1 | Author: Krzysztof Aleksander Pyrkosz <[email protected]> |
| 2 | Last-Update: Sun, 26 Jun 2022 23:36:00 +0200 |
| 3 | Bug-Debian: https://bugs.debian.org/1013892 |
| 4 | Description: Do not get stuck in an infinite loop on ARM |
| 5 | |
| 6 | --- a/main.cpp |
| 7 | +++ b/main.cpp |
| 8 | @@ -488,7 +488,7 @@ void printHelp(){ |
| 9 | bool readPuzzleFromStdIn(int* puzzle){ |
| 10 | int read = 0; |
| 11 | while (read < BOARD_SIZE){ |
| 12 | - char c = getchar(); |
| 13 | + int c = getchar(); |
| 14 | if (c == EOF) return false; |
| 15 | if (c >= '1' && c <='9'){ |
| 16 | puzzle[read] = c-'0'; |