summaryrefslogtreecommitdiff
path: root/vm_eval.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-05 05:26:25 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-05 05:26:25 +0000
commitc348613504613b73a7fa5204158cd80bd88b982c (patch)
tree8fb60effdc4ea3b550da5a40e1bf90eae1e6f28e /vm_eval.c
parentcda7250de0e7cd3f8842ee9b7c0ce8dc7cf920d1 (diff)
downloadruby-c348613504613b73a7fa5204158cd80bd88b982c.tar.gz
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
Diffstat (limited to 'vm_eval.c')
-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;