summaryrefslogtreecommitdiff
path: root/io_buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'io_buffer.c')
-rw-r--r--io_buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_buffer.c b/io_buffer.c
index f53b140130..327a109177 100644
--- a/io_buffer.c
+++ b/io_buffer.c
@@ -390,7 +390,7 @@ rb_io_buffer_to_s(VALUE self)
VALUE result = rb_str_new_cstr("#<");
rb_str_append(result, rb_class_name(CLASS_OF(self)));
- rb_str_catf(result, " %p+%ld", data->base, data->size);
+ rb_str_catf(result, " %p+%"PRIdSIZE, data->base, data->size);
if (data->flags & RB_IO_BUFFER_INTERNAL) {
rb_str_cat2(result, " INTERNAL");