From 287eac5e8ecb774edcc3e4000f3b4848700d23e4 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 26 Oct 2022 10:43:41 +0900 Subject: [PATCH] Fix format specifiers for `size_t` --- io_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }