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
main
Akanksha Mahajan 2 years ago committed by Facebook GitHub Bot
parent c987eb4712
commit fc51b7f33a
  1. 2
      env/io_posix.h

2
env/io_posix.h vendored

@ -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;

Loading…
Cancel
Save