aboutsummaryrefslogtreecommitdiff
path: root/strbuf.c
diff options
context:
space:
mode:
authorlijunlong <lijunlong@openresty.com>2026-02-10 09:08:50 +0800
committerlijunlong <lijunlong@openresty.com>2026-02-10 09:08:52 +0800
commitc305d55c7f321c01b4d135ef6d41879fd5f8e9f5 (patch)
treea7c5de1ef4ff7a5e83d55e60fa0e173832308575 /strbuf.c
parentfed8c8356be4d94ceb55f2880bdb77fd9b55ef1e (diff)
downloadlua-cjson-c305d55c7f321c01b4d135ef6d41879fd5f8e9f5.tar.gz
lua-cjson-c305d55c7f321c01b4d135ef6d41879fd5f8e9f5.tar.bz2
lua-cjson-c305d55c7f321c01b4d135ef6d41879fd5f8e9f5.zip
optimize: rename cjson.decoce_allow_comments to cjson.decocde_allow_comment.HEADmaster
reslove two warnings and update the doc.
Diffstat (limited to 'strbuf.c')
-rw-r--r--strbuf.c4
1 files changed, 2 insertions, 2 deletions
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)
86{ 86{
87 if (s->debug) { 87 if (s->debug) {
88 fprintf(stderr, "strbuf(%p) reallocs: %d, length: %zd, size: %zd\n", 88 fprintf(stderr, "strbuf(%p) reallocs: %d, length: %zd, size: %zd\n",
89 s, s->reallocs, s->length, s->size); 89 (void *) s, s->reallocs, s->length, s->size);
90 } 90 }
91} 91}
92 92
@@ -165,7 +165,7 @@ void strbuf_resize(strbuf_t *s, size_t len)
165 165
166 if (s->debug > 1) { 166 if (s->debug > 1) {
167 fprintf(stderr, "strbuf(%p) resize: %zd => %zd\n", 167 fprintf(stderr, "strbuf(%p) resize: %zd => %zd\n",
168 s, s->size, newsize); 168 (void *) s, s->size, newsize);
169 } 169 }
170 170
171 s->size = newsize; 171 s->size = newsize;