diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-09-13 06:49:49 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-09-13 06:49:49 +0000 |
commit | 8bc5c172f90b4ff1c5975f1345b0e3f6e2f47ccf (patch) | |
tree | 8c0a55ed95604336a9378c480f18a42164ac33cb | |
parent | bada0d24eb29b03e3c41ba3dac8cd2a225b11a80 (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
-rw-r--r-- | thread.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |