summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-13 06:49:49 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-13 06:49:49 +0000
commit8bc5c172f90b4ff1c5975f1345b0e3f6e2f47ccf (patch)
tree8c0a55ed95604336a9378c480f18a42164ac33cb /thread.c
parentbada0d24eb29b03e3c41ba3dac8cd2a225b11a80 (diff)
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
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c4
1 files changed, 2 insertions, 2 deletions
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;
}