diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-10-26 10:43:41 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-10-26 18:57:26 +0900 |
commit | 287eac5e8ecb774edcc3e4000f3b4848700d23e4 (patch) | |
tree | a326c8ab529fcb7d4ad9e3c4ab906c5db3c4f9cc /io_buffer.c | |
parent | 94f3aa2126231fb04f4c3125162e84f6acc3df09 (diff) |
Fix format specifiers for `size_t`
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6634
Diffstat (limited to 'io_buffer.c')
-rw-r--r-- | io_buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_buffer.c b/io_buffer.c index e252af3513..a0d988e259 100644 --- a/io_buffer.c +++ b/io_buffer.c @@ -1462,7 +1462,7 @@ static void io_buffer_validate_type(size_t size, size_t offset) { if (offset > size) { - rb_raise(rb_eArgError, "Type extends beyond end of buffer! (offset=%ld > size=%ld)", offset, size); + rb_raise(rb_eArgError, "Type extends beyond end of buffer! (offset=%"PRIdSIZE" > size=%"PRIdSIZE")", offset, size); } } |