diff options
Diffstat (limited to 'io_buffer.c')
-rw-r--r-- | io_buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/io_buffer.c b/io_buffer.c index d9a9f40bd7..7039ef71b8 100644 --- a/io_buffer.c +++ b/io_buffer.c @@ -680,10 +680,10 @@ io_buffer_hexdump(VALUE string, size_t width, char *base, size_t size, int first for (size_t offset = 0; offset < size; offset += width) { memset(text, '\0', width); if (first) { - rb_str_catf(string, "0x%08zx ", offset); + rb_str_catf(string, "0x%08" PRIxSIZE " ", offset); first = 0; } else { - rb_str_catf(string, "\n0x%08zx ", offset); + rb_str_catf(string, "\n0x%08" PRIxSIZE " ", offset); } for (size_t i = 0; i < width; i += 1) { |