diff options
author | 卜部昌平 <[email protected]> | 2019-08-26 15:20:15 +0900 |
---|---|---|
committer | 卜部昌平 <[email protected]> | 2019-08-27 15:52:26 +0900 |
commit | 703783324c16b8b2b50210d1a7d1119902abbb8b (patch) | |
tree | d594ba9029a1ddcee223fcb2f39be07ef20daca1 /variable.c | |
parent | 5c7c2d9951f2512ca10ea38fecc48d8ac67502e6 (diff) |
rb_ensure now free from ANYARGS
After 5e86b005c0f2ef30df2f9906c7e2f3abefe286a2, I now think ANYARGS is
dangerous and should be extinct. This commit deletes ANYARGS from
rb_ensure, which also revealed many arity / type mismatches.
Diffstat (limited to 'variable.c')
-rw-r--r-- | variable.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/variable.c b/variable.c index 2a3862fca1..3db3e3d5ef 100644 --- a/variable.c +++ b/variable.c @@ -671,8 +671,9 @@ struct trace_data { }; static VALUE -trace_ev(struct trace_data *data) +trace_ev(VALUE v) { + struct trace_data *data = (void *)v; struct trace_var *trace = data->trace; while (trace) { @@ -684,8 +685,9 @@ trace_ev(struct trace_data *data) } static VALUE -trace_en(struct rb_global_variable *var) +trace_en(VALUE v) { + struct rb_global_variable *var = (void *)v; var->block_trace = 0; remove_trace(var); return Qnil; /* not reached */ |