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

Fix format specifiers for size_t

This commit is contained in:
Nobuyoshi Nakada 2022-10-26 10:43:41 +09:00
parent 94f3aa2126
commit 287eac5e8e
Notes: git 2022-10-26 09:57:48 +00:00

View file

@ -1462,7 +1462,7 @@ static void
io_buffer_validate_type(size_t size, size_t offset) io_buffer_validate_type(size_t size, size_t offset)
{ {
if (offset > size) { 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);
} }
} }