1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix format specifier

This commit is contained in:
Nobuyoshi Nakada 2021-11-10 17:07:58 +09:00
parent 46e46eafd4
commit 943b6e4d9c
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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");