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

Fix -Wsign-compare when -DRUBY_DEBUG=1

Sizes for darray are size_t now. CC @peterzhu2118
This commit is contained in:
Alan Wu 2022-02-16 10:34:06 -05:00 committed by GitHub
parent 969ad5802d
commit 797e8f542e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -567,7 +567,7 @@ add_block_version(block_t *block)
#endif #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); rb_yjit_block_array_t *block_array_ref = rb_darray_ref(body->yjit_blocks, blockid.idx);
// Add the new block // Add the new block