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:
parent
cda7250de0
commit
c348613504
1 changed files with 1 additions and 1 deletions
|
@ -1834,7 +1834,7 @@ VALUE
|
||||||
rb_catch_obj(VALUE t, VALUE (*func)(), VALUE data)
|
rb_catch_obj(VALUE t, VALUE (*func)(), VALUE data)
|
||||||
{
|
{
|
||||||
int state;
|
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)
|
if (state)
|
||||||
JUMP_TAG(state);
|
JUMP_TAG(state);
|
||||||
return val;
|
return val;
|
||||||
|
|
Loading…
Add table
Reference in a new issue