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

vm_eval.c: suppress warning

* vm_eval.c (rb_catch_obj): add cast to suppress warning by VC.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-12-05 05:26:25 +00:00
parent cda7250de0
commit c348613504

View file

@ -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;