ruby-changes:74258
From: Nobuyoshi <ko1@a...>
Date: Wed, 26 Oct 2022 18:57:48 +0900 (JST)
Subject: [ruby-changes:74258] 287eac5e8e (master): Fix format specifiers for `size_t`
https://git.ruby-lang.org/ruby.git/commit/?id=287eac5e8e From 287eac5e8ecb774edcc3e4000f3b4848700d23e4 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Wed, 26 Oct 2022 10:43:41 +0900 Subject: 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 https://github.com/ruby/ruby/blob/trunk/io_buffer.c#L1462 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); } } -- cgit v1.2.3 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/