aboutsummaryrefslogtreecommitdiffhomepage
path: root/io.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-11-26 18:46:44 +0100
committerlemon <lsof@mailbox.org>2025-11-26 19:31:10 +0100
commit375e9f050de6b09c00eecafd63bd9b967fbeb335 (patch)
tree940db01d53dbe8d39279b6c95902b4cfadb31f92 /io.c
parent0bb43ea3af31d4c141285ab968b476228416f0c8 (diff)
c/type: make implicit const T* -> T* conversion warning, not error
Diffstat (limited to 'io.c')
-rw-r--r--io.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/io.c b/io.c
index b3119fc..58ebf17 100644
--- a/io.c
+++ b/io.c
@@ -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');
}