diff options
author | Alan Wu <XrXr@users.noreply.github.com> | 2022-02-16 10:34:06 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-16 10:34:06 -0500 |
commit | 797e8f542e29524cbfce3959da132ef6349a8bbc (patch) | |
tree | 4bde0b46de6044ad0c39a4e7e7e4c0cfd6c3e331 | |
parent | 969ad5802dfe60c254f2f30514233b05ece8049c (diff) | |
download | ruby-797e8f542e29524cbfce3959da132ef6349a8bbc.tar.gz |
Fix -Wsign-compare when -DRUBY_DEBUG=1
Sizes for darray are size_t now. CC @peterzhu2118
-rw-r--r-- | yjit_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) #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 |