From c305d55c7f321c01b4d135ef6d41879fd5f8e9f5 Mon Sep 17 00:00:00 2001 From: lijunlong Date: Tue, 10 Feb 2026 09:08:50 +0800 Subject: optimize: rename cjson.decoce_allow_comments to cjson.decocde_allow_comment. reslove two warnings and update the doc. --- strbuf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'strbuf.c') diff --git a/strbuf.c b/strbuf.c index 704f702..8aa0747 100644 --- a/strbuf.c +++ b/strbuf.c @@ -86,7 +86,7 @@ static inline void debug_stats(strbuf_t *s) { if (s->debug) { fprintf(stderr, "strbuf(%p) reallocs: %d, length: %zd, size: %zd\n", - s, s->reallocs, s->length, s->size); + (void *) s, s->reallocs, s->length, s->size); } } @@ -165,7 +165,7 @@ void strbuf_resize(strbuf_t *s, size_t len) if (s->debug > 1) { fprintf(stderr, "strbuf(%p) resize: %zd => %zd\n", - s, s->size, newsize); + (void *) s, s->size, newsize); } s->size = newsize; -- cgit v1.2.3-55-g6feb