summaryrefslogtreecommitdiff
path: root/cont.c
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-02 06:41:40 (GMT)
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-02 06:41:40 (GMT)
commitb6a2d63eb3dbc31e110e8cb95e054dd71d49a611 (patch)
treeda13a7abdee0e49b6b078b9b81b537550b8c4bed /cont.c
parentb4b0e8bd0be3f9e44f453bdc7b139cee9bc7e87a (diff)
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
Diffstat (limited to 'cont.c')
-rw-r--r--cont.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cont.c b/cont.c
index 82e2340..f48fd2e 100644
--- a/cont.c
+++ b/cont.c
@@ -222,7 +222,7 @@ rb_ec_verify(const rb_execution_context_t *ec)
static void
fiber_status_set(const rb_fiber_t *fib, enum fiber_status s)
{
- if (0) fprintf(stderr, "fib: %p, status: %s -> %s\n", fib, fiber_status_name(fib->status), fiber_status_name(s));
+ if (0) fprintf(stderr, "fib: %p, status: %s -> %s\n", (void *)fib, fiber_status_name(fib->status), fiber_status_name(s));
VM_ASSERT(!FIBER_TERMINATED_P(fib));
VM_ASSERT(fib->status != s);
fiber_verify(fib);