From fc51b7f33adcba7ac725ed0e7fe8b8155aaeaee4 Mon Sep 17 00:00:00 2001 From: Akanksha Mahajan Date: Thu, 7 Jul 2022 11:35:15 -0700 Subject: [PATCH] Fix clang error implicit conversion loses integer precision (#10323) Summary: Fix error: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uint32_t' (aka 'unsigned int') [-Werror,-Wshorten-64-to-32] Pull Request resolved: https://github.com/facebook/rocksdb/pull/10323 Test Plan: USE_CLANG=1 make -j32 Reviewed By: gitbw95 Differential Revision: D37688250 Pulled By: akankshamahajan15 fbshipit-source-id: 443873e41279ee8bdbe8452818549792047532fb --- env/io_posix.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/env/io_posix.h b/env/io_posix.h index 1cad4f9bd..d766427f8 100644 --- a/env/io_posix.h +++ b/env/io_posix.h @@ -99,7 +99,7 @@ struct Posix_IOHandle { inline void UpdateResult(struct io_uring_cqe* cqe, const std::string& file_name, size_t len, size_t iov_len, bool async_read, - bool use_direct_io, uint32_t alignment, + bool use_direct_io, size_t alignment, size_t& finished_len, FSReadRequest* req, size_t& bytes_read, bool& read_again) { read_again = false;