Skip to content

Commit ca4799c

Browse files
committed
Fix one more size_t -> uint32_t narrowing warning
1 parent 5f59e93 commit ca4799c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libminifi/src/io/InputStream.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ size_t InputStream::read(std::string &str, bool widen) {
7070
str.clear();
7171
str.reserve(string_length);
7272

73-
auto bytes_to_read = string_length;
73+
size_t bytes_to_read{string_length};
7474
auto zero_return_retry_count = 0;
7575
while (bytes_to_read > 0) {
7676
std::vector<std::byte> buffer(bytes_to_read);

0 commit comments

Comments
 (0)