add casts.
add casts to avoid compile error. http://ci.rvm.jp/results/trunk_clang_39@silicon-docker/2402215
This commit is contained in:
parent
c3693bbaaa
commit
5e34ab5406
@ -1497,7 +1497,7 @@ opt_invokebuiltin_delegate
|
|||||||
(VALUE ret)
|
(VALUE ret)
|
||||||
// attr bool leaf = false; /* anything can happen inside */
|
// 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 */
|
/* call specific function with args (same parameters) and leave */
|
||||||
@ -1508,7 +1508,7 @@ opt_invokebuiltin_delegate_leave
|
|||||||
(VALUE val)
|
(VALUE val)
|
||||||
// attr bool leaf = false; /* anything can happen inside */
|
// 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 */
|
/* leave fastpath */
|
||||||
/* TracePoint/return should fallback this insn to opt_invokebuiltin_delegate */
|
/* TracePoint/return should fallback this insn to opt_invokebuiltin_delegate */
|
||||||
|
@ -4989,7 +4989,7 @@ vm_invoke_builtin(rb_execution_context_t *ec, rb_control_frame_t *cfp, const str
|
|||||||
}
|
}
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
vm_invoke_builtin_delegate(rb_execution_context_t *ec, rb_control_frame_t *cfp, const struct rb_builtin_function *bf, int start_index)
|
vm_invoke_builtin_delegate(rb_execution_context_t *ec, rb_control_frame_t *cfp, const struct rb_builtin_function *bf, unsigned int start_index)
|
||||||
{
|
{
|
||||||
if (0) { // debug print
|
if (0) { // debug print
|
||||||
fprintf(stderr, "vm_invoke_builtin_delegate: passing -> ");
|
fprintf(stderr, "vm_invoke_builtin_delegate: passing -> ");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user