From 3c64e2247623a66347a48d66b6a791b58a71fdbe Mon Sep 17 00:00:00 2001 From: Deyan Dobromirov Date: Mon, 19 Jan 2026 02:44:59 +0200 Subject: Fixed: worning for explicit pointer to int conversion. --- strbuf.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'strbuf.c') 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) static inline void debug_stats(strbuf_t *s) { if (s->debug) { - fprintf(stderr, "strbuf(%lx) reallocs: %d, length: %zd, size: %zd\n", - (long)s, s->reallocs, s->length, s->size); + fprintf(stderr, "strbuf(%p) reallocs: %d, length: %zd, size: %zd\n", + s, s->reallocs, s->length, s->size); } } @@ -164,8 +164,8 @@ void strbuf_resize(strbuf_t *s, size_t len) newsize = calculate_new_size(s, len); if (s->debug > 1) { - fprintf(stderr, "strbuf(%lx) resize: %zd => %zd\n", - (long)s, s->size, newsize); + fprintf(stderr, "strbuf(%p) resize: %zd => %zd\n", + s, s->size, newsize); } s->size = newsize; -- cgit v1.2.3-55-g6feb