ruby-changes:71192
From: Alan <ko1@a...>
Date: Thu, 17 Feb 2022 00:34:27 +0900 (JST)
Subject: [ruby-changes:71192] 797e8f542e (master): Fix -Wsign-compare when -DRUBY_DEBUG=1
https://git.ruby-lang.org/ruby.git/commit/?id=797e8f542e From 797e8f542e29524cbfce3959da132ef6349a8bbc Mon Sep 17 00:00:00 2001 From: Alan Wu <XrXr@u...> Date: Wed, 16 Feb 2022 10:34:06 -0500 Subject: Fix -Wsign-compare when -DRUBY_DEBUG=1 Sizes for darray are size_t now. CC @peterzhu2118 --- yjit_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yjit_core.c b/yjit_core.c index 1ad709b2ec..b70abcafb2 100644 --- a/yjit_core.c +++ b/yjit_core.c @@ -567,7 +567,7 @@ add_block_version(block_t *block) https://github.com/ruby/ruby/blob/trunk/yjit_core.c#L567 #endif } - RUBY_ASSERT((int32_t)blockid.idx < rb_darray_size(body->yjit_blocks)); + RUBY_ASSERT(blockid.idx < rb_darray_size(body->yjit_blocks)); rb_yjit_block_array_t *block_array_ref = rb_darray_ref(body->yjit_blocks, blockid.idx); // Add the new block -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/