diff options
| author | lijunlong <lijunlong@openresty.com> | 2026-02-10 09:08:50 +0800 |
|---|---|---|
| committer | lijunlong <lijunlong@openresty.com> | 2026-02-10 09:08:52 +0800 |
| commit | c305d55c7f321c01b4d135ef6d41879fd5f8e9f5 (patch) | |
| tree | a7c5de1ef4ff7a5e83d55e60fa0e173832308575 /strbuf.c | |
| parent | fed8c8356be4d94ceb55f2880bdb77fd9b55ef1e (diff) | |
| download | lua-cjson-c305d55c7f321c01b4d135ef6d41879fd5f8e9f5.tar.gz lua-cjson-c305d55c7f321c01b4d135ef6d41879fd5f8e9f5.tar.bz2 lua-cjson-c305d55c7f321c01b4d135ef6d41879fd5f8e9f5.zip | |
reslove two warnings and update the doc.
Diffstat (limited to 'strbuf.c')
| -rw-r--r-- | strbuf.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -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; |
