Skip to content

Commit

Permalink
fix a bug in Method#call(&b) where the inline block would not be passed
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Sansonetti committed May 3, 2011
1 parent 1ad72c1 commit 485e491
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proc.c
Expand Up @@ -1080,7 +1080,7 @@ rb_method_call(VALUE method, SEL sel, int argc, VALUE *argv)
}
}

VALUE result = rb_vm_method_call(data, NULL, argc, argv);
VALUE result = rb_vm_method_call(data, rb_vm_current_block(), argc, argv);

if (safe >= 0) {
rb_set_safe_level_force(safe);
Expand Down

0 comments on commit 485e491

Please sign in to comment.