aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeyan Dobromirov <dvdvideo123@gmail.com>2026-01-19 02:44:59 +0200
committerGitHub <noreply@github.com>2026-01-19 08:44:59 +0800
commit3c64e2247623a66347a48d66b6a791b58a71fdbe (patch)
tree5594a6b63596fdc9ada459446488b93075485192
parente6daf3cdfac61055af3f7d88d9886942ff0de6e6 (diff)
downloadlua-cjson-3c64e2247623a66347a48d66b6a791b58a71fdbe.tar.gz
lua-cjson-3c64e2247623a66347a48d66b6a791b58a71fdbe.tar.bz2
lua-cjson-3c64e2247623a66347a48d66b6a791b58a71fdbe.zip
Fixed: worning for explicit pointer to int conversion.
-rw-r--r--strbuf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/strbuf.c b/strbuf.c
index 73cd9b8..704f702 100644
--- a/strbuf.c
+++ b/strbuf.c
@@ -85,8 +85,8 @@ strbuf_t *strbuf_new(size_t len)
85static inline void debug_stats(strbuf_t *s) 85static inline void debug_stats(strbuf_t *s)
86{ 86{
87 if (s->debug) { 87 if (s->debug) {
88 fprintf(stderr, "strbuf(%lx) reallocs: %d, length: %zd, size: %zd\n", 88 fprintf(stderr, "strbuf(%p) reallocs: %d, length: %zd, size: %zd\n",
89 (long)s, s->reallocs, s->length, s->size); 89 s, s->reallocs, s->length, s->size);
90 } 90 }
91} 91}
92 92
@@ -164,8 +164,8 @@ void strbuf_resize(strbuf_t *s, size_t len)
164 newsize = calculate_new_size(s, len); 164 newsize = calculate_new_size(s, len);
165 165
166 if (s->debug > 1) { 166 if (s->debug > 1) {
167 fprintf(stderr, "strbuf(%lx) resize: %zd => %zd\n", 167 fprintf(stderr, "strbuf(%p) resize: %zd => %zd\n",
168 (long)s, s->size, newsize); 168 s, s->size, newsize);
169 } 169 }
170 170
171 s->size = newsize; 171 s->size = newsize;