summaryrefslogtreecommitdiff
path: root/yjit_codegen.c
diff options
context:
space:
mode:
authorMaxime Chevalier-Boisvert <[email protected]>2021-09-09 15:35:47 -0400
committerAlan Wu <[email protected]>2021-10-20 18:19:40 -0400
commit11599e5e1ebed485089a994753a9c3c79416c037 (patch)
treef6e868aeaa01cbf2c53f07150cf7e75c337c10b6 /yjit_codegen.c
parentf380856923f066e02fb1233c720a6abdc645d11f (diff)
Add rb_darray_clear() for Kevin. Fix some warnings.
Diffstat (limited to 'yjit_codegen.c')
-rw-r--r--yjit_codegen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/yjit_codegen.c b/yjit_codegen.c
index e99cc2622e..015e97bb73 100644
--- a/yjit_codegen.c
+++ b/yjit_codegen.c
@@ -142,6 +142,7 @@ jit_peek_at_self(jitstate_t *jit, ctx_t *ctx)
return jit->ec->cfp->self;
}
+RBIMPL_ATTR_MAYBE_UNUSED()
static VALUE
jit_peek_at_local(jitstate_t *jit, ctx_t *ctx, int n)
{
@@ -986,7 +987,7 @@ gen_expandarray(jitstate_t* jit, ctx_t* ctx)
// num is the number of requested values. If there aren't enough in the
// array then we're going to push on nils.
- rb_num_t num = (rb_num_t) jit_get_arg(jit, 0);
+ int num = (int)jit_get_arg(jit, 0);
val_type_t array_type = ctx_get_opnd_type(ctx, OPND_STACK(0));
x86opnd_t array_opnd = ctx_stack_pop(ctx, 1);