From 8bc5c172f90b4ff1c5975f1345b0e3f6e2f47ccf Mon Sep 17 00:00:00 2001 From: k0kubun Date: Thu, 13 Sep 2018 06:49:49 +0000 Subject: thread.c: fix -Wformat warning ../thread.c:1219:18: warning: format specifies type 'unsigned long' but the argument has type 'rb_hrtime_t' (aka 'unsigned long long') [-Wformat] end, now); ^~~ ../thread.c:1219:23: warning: format specifies type 'unsigned long' but the argument has type 'rb_hrtime_t' (aka 'unsigned long long') [-Wformat] end, now); ^~~ git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'thread.c') diff --git a/thread.c b/thread.c index ccb1346487..ffbc2ac29f 100644 --- a/thread.c +++ b/thread.c @@ -1215,8 +1215,8 @@ hrtime_update_expire(rb_hrtime_t *timeout, const rb_hrtime_t end) if (now > end) return 1; thread_debug("hrtime_update_expire: " - "%"PRI_64_PREFIX"u > %"PRI_64_PREFIX"u\n", - end, now); + "%"PRI_64_PREFIX"u > %"PRI_64_PREFIX"u\n", + (unsigned long)end, (unsigned long)now); *timeout = end - now; return 0; } -- cgit v1.2.3