summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vm_eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_eval.c b/vm_eval.c
index 41a05634e4..d3dbf2e581 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -1834,7 +1834,7 @@ VALUE
rb_catch_obj(VALUE t, VALUE (*func)(), VALUE data)
{
int state;
- VALUE val = rb_catch_protect(t, func, data, &state);
+ VALUE val = rb_catch_protect(t, (rb_block_call_func *)func, data, &state);
if (state)
JUMP_TAG(state);
return val;