because, on arm32, size_t is "unsigned", while uint64_t is "long long
unsigned int", compiler is not able to promote the former to the latter
automatically. and ImageRequest::Extents::value_type::second_type is
indeed uint64_t, which is expected by clip_io(). so let's just use
"auto" here.
Fixes: http://tracker.ceph.com/issues/18938
Signed-off-by: Kefu Chai <kchai@redhat.com>
int ImageRequest<I>::clip_request() {
RWLock::RLocker snap_locker(m_image_ctx.snap_lock);
for (auto &image_extent : m_image_extents) {
- size_t clip_len = image_extent.second;
+ auto clip_len = image_extent.second;
int r = clip_io(get_image_ctx(&m_image_ctx), image_extent.first, &clip_len);
if (r < 0) {
return r;