aboutsummaryrefslogtreecommitdiffstats
path: root/insns.def
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2019-11-18 10:36:48 +0900
committerKoichi Sasada <ko1@atdot.net>2019-11-18 10:36:48 +0900
commit5e34ab5406942d43b4c0fbccfc153409d0386d1e (patch)
tree2ffbcc7b4df8f6bc3eae3cec3b7139faed014e2b /insns.def
parentc3693bbaaa39d36210060fb4478751d66c0052ad (diff)
downloadruby-5e34ab5406942d43b4c0fbccfc153409d0386d1e.tar.gz
add casts.
add casts to avoid compile error. http://ci.rvm.jp/results/trunk_clang_39@silicon-docker/2402215
Diffstat (limited to 'insns.def')
-rw-r--r--insns.def4
1 files changed, 2 insertions, 2 deletions
diff --git a/insns.def b/insns.def
index 0388a364da..39b05543eb 100644
--- a/insns.def
+++ b/insns.def
@@ -1497,7 +1497,7 @@ opt_invokebuiltin_delegate
(VALUE ret)
// attr bool leaf = false; /* anything can happen inside */
{
- ret = vm_invoke_builtin_delegate(ec, reg_cfp, bf, index);
+ ret = vm_invoke_builtin_delegate(ec, reg_cfp, bf, (unsigned int)index);
}
/* call specific function with args (same parameters) and leave */
@@ -1508,7 +1508,7 @@ opt_invokebuiltin_delegate_leave
(VALUE val)
// attr bool leaf = false; /* anything can happen inside */
{
- val = vm_invoke_builtin_delegate(ec, reg_cfp, bf, index);
+ val = vm_invoke_builtin_delegate(ec, reg_cfp, bf, (unsigned int)index);
/* leave fastpath */
/* TracePoint/return should fallback this insn to opt_invokebuiltin_delegate */