diff options
| author | 2025-11-26 18:46:44 +0100 | |
|---|---|---|
| committer | 2025-11-26 19:31:10 +0100 | |
| commit | 375e9f050de6b09c00eecafd63bd9b967fbeb335 (patch) | |
| tree | 940db01d53dbe8d39279b6c95902b4cfadb31f92 /io.c | |
| parent | 0bb43ea3af31d4c141285ab968b476228416f0c8 (diff) | |
c/type: make implicit const T* -> T* conversion warning, not error
Diffstat (limited to 'io.c')
| -rw-r--r-- | io.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1011,10 +1011,11 @@ vdiag(const struct span *span, enum diagkind kind, const char *fmt, va_list ap) do { ioputc(&bstderr, mark); mark = '~'; - } while (--nmark && ++j < end); + } while (--nmark > 0 && ++j < end); col = 1; ++line; efmt("%g.\n"); + --nmark; } ioputc(&bstderr, '\n'); } |