diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-05-05 01:33:37 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-05-05 01:33:37 +0900 |
| commit | 830d5c37b19bf818c5d75e6e2b74f27f75c85419 (patch) | |
| tree | 0dce6bce17a7a354e52e9c03908a7777dfcf077e /main.c | |
| parent | ecffc7cf7aaa3fd447848568619161a95408aa0e (diff) | |
| download | P4Dcc-830d5c37b19bf818c5d75e6e2b74f27f75c85419.tar.gz P4Dcc-830d5c37b19bf818c5d75e6e2b74f27f75c85419.tar.zst P4Dcc-830d5c37b19bf818c5d75e6e2b74f27f75c85419.zip | |
desugar: do not use result of assignment
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -22,7 +22,11 @@ void fatal_error(char* msg) { int read_all(char* buf) { int c; int n = 0; - for (0; (c = getchar()) != -1; 0) { + for (0; 1; 0) { + c = getchar(); + if (c == -1) { + break; + } buf[n] = c; n = n + 1; } |
