Skip to content

Commit 3c64e22

Browse files
authored
Fixed: worning for explicit pointer to int conversion.
1 parent e6daf3c commit 3c64e22

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

strbuf.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ strbuf_t *strbuf_new(size_t len)
8585
static inline void debug_stats(strbuf_t *s)
8686
{
8787
if (s->debug) {
88-
fprintf(stderr, "strbuf(%lx) reallocs: %d, length: %zd, size: %zd\n",
89-
(long)s, s->reallocs, s->length, s->size);
88+
fprintf(stderr, "strbuf(%p) reallocs: %d, length: %zd, size: %zd\n",
89+
s, s->reallocs, s->length, s->size);
9090
}
9191
}
9292

@@ -164,8 +164,8 @@ void strbuf_resize(strbuf_t *s, size_t len)
164164
newsize = calculate_new_size(s, len);
165165

166166
if (s->debug > 1) {
167-
fprintf(stderr, "strbuf(%lx) resize: %zd => %zd\n",
168-
(long)s, s->size, newsize);
167+
fprintf(stderr, "strbuf(%p) resize: %zd => %zd\n",
168+
s, s->size, newsize);
169169
}
170170

171171
s->size = newsize;

0 commit comments

Comments
 (0)