summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-26 01:34:35 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-26 01:34:35 (GMT)
commit3f519a7bfa8f1c806c5791efaa80d76817f7d61d (patch)
treed5124955fe0e69cecd9d74de8e8bd889bafbb663 /tool
parent08b08c1f27387f209cb215b518ceb802786ee42d (diff)
compile.c: explicit address
* compile.c (prepare_compile_error): add & to explicit address of functions to suppress warnings by old VC. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rw-r--r--tool/mk_call_iseq_optimized.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/tool/mk_call_iseq_optimized.rb b/tool/mk_call_iseq_optimized.rb
index 4cfde2c..0af637b 100644
--- a/tool/mk_call_iseq_optimized.rb
+++ b/tool/mk_call_iseq_optimized.rb
@@ -40,10 +40,10 @@ static inline vm_call_handler
vm_call_iseq_setup_func(const struct rb_call_info *ci, const int param_size, const int local_size)
{
if (UNLIKELY(ci->flag & VM_CALL_TAILCALL)) {
- return vm_call_iseq_setup_tailcall_0start;
+ return &vm_call_iseq_setup_tailcall_0start;
}
else if (0) { /* to disable optimize */
- return vm_call_iseq_setup_normal_0start;
+ return &vm_call_iseq_setup_normal_0start;
}
else {
if (param_size <= #{P.end} &&
@@ -51,7 +51,7 @@ vm_call_iseq_setup_func(const struct rb_call_info *ci, const int param_size, con
VM_ASSERT(local_size != 0);
return vm_call_iseq_handlers[param_size][local_size-1];
}
- return vm_call_iseq_setup_normal_0start;
+ return &vm_call_iseq_setup_normal_0start;
}
}
@@ -62,10 +62,10 @@ static inline vm_call_handler
vm_call_iseq_setup_func(const struct rb_call_info *ci, struct rb_call_cache *cc)
{
if (UNLIKELY(ci->flag & VM_CALL_TAILCALL)) {
- return vm_call_iseq_setup_tailcall_0start;
+ return &vm_call_iseq_setup_tailcall_0start;
}
else {
- return vm_call_iseq_setup_normal_0start;
+ return &vm_call_iseq_setup_normal_0start;
}
}
#endif