summaryrefslogtreecommitdiff
path: root/io_buffer.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-11-10 17:07:58 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-11-10 17:07:58 +0900
commit943b6e4d9c480b9daf2352c28769a92eecf5f66a (patch)
tree249c7dc39fb205315fc6f724ff77d219dd140ed8 /io_buffer.c
parent46e46eafd48c474ae8be0dd7d11bc43725de3d02 (diff)
downloadruby-943b6e4d9c480b9daf2352c28769a92eecf5f66a.tar.gz
Fix format specifier
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");