diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-04-08 13:18:22 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-04-08 15:19:50 +0200 |
commit | 277be6dd08633dbebfda93afdfc6b5cb57e053e0 (patch) | |
tree | 6c86157c7f93636459361264054753a1dc9d33e9 /src/other_tools/utils/curl_easy_handle.cpp | |
parent | 419a458ad9d4383eb47d51fe8e4408a0e240c2f1 (diff) | |
download | justbuild-277be6dd08633dbebfda93afdfc6b5cb57e053e0.tar.gz |
Use properly included standard library types by default
Diffstat (limited to 'src/other_tools/utils/curl_easy_handle.cpp')
-rw-r--r-- | src/other_tools/utils/curl_easy_handle.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/other_tools/utils/curl_easy_handle.cpp b/src/other_tools/utils/curl_easy_handle.cpp index 6939c6d1..2fcfb877 100644 --- a/src/other_tools/utils/curl_easy_handle.cpp +++ b/src/other_tools/utils/curl_easy_handle.cpp @@ -40,11 +40,11 @@ auto read_stream_data(gsl::not_null<std::FILE*> const& stream) noexcept std::rewind(stream); // create string buffer to hold stream content - std::string content(static_cast<size_t>(size), '\0'); + std::string content(static_cast<std::size_t>(size), '\0'); // read stream content into string buffer auto n = std::fread(content.data(), 1, content.size(), stream); - if (n != static_cast<size_t>(size)) { + if (n != static_cast<std::size_t>(size)) { Logger::Log(LogLevel::Warning, "Reading curl log from temporary file failed: read only {} " "bytes while {} were expected", @@ -87,8 +87,8 @@ auto CurlEasyHandle::Create( } auto CurlEasyHandle::EasyWriteToFile(gsl::owner<char*> data, - size_t size, - size_t nmemb, + std::size_t size, + std::size_t nmemb, gsl::owner<void*> userptr) -> std::streamsize { auto actual_size = static_cast<std::streamsize>(size * nmemb); @@ -98,8 +98,8 @@ auto CurlEasyHandle::EasyWriteToFile(gsl::owner<char*> data, } auto CurlEasyHandle::EasyWriteToString(gsl::owner<char*> data, - size_t size, - size_t nmemb, + std::size_t size, + std::size_t nmemb, gsl::owner<void*> userptr) -> std::streamsize { size_t actual_size = size * nmemb; |