From b6a2d63eb3dbc31e110e8cb95e054dd71d49a611 Mon Sep 17 00:00:00 2001 From: shyouhei Date: Tue, 2 Jan 2018 06:41:40 +0000 Subject: explicit cast to void* required for %p These functions take variadic arguments so no automatic type promotion is expected. You have to do it by hand. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_insnhelper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vm_insnhelper.c') diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 6eb6180a25..e6f7145119 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -1862,7 +1862,7 @@ vm_cfp_consistent_p(rb_execution_context_t *ec, const rb_control_frame_t *reg_cf #define CHECK_CFP_CONSISTENCY(func) \ (LIKELY(vm_cfp_consistent_p(ec, reg_cfp)) ? (void)0 : \ - rb_bug(func ": cfp consistency error (%p, %p)", reg_cfp, ec->cfp+1)) + rb_bug(func ": cfp consistency error (%p, %p)", (void *)reg_cfp, (void *)(ec->cfp+1))) static inline const rb_method_cfunc_t * -- cgit v1.2.3