Skip to content

Commit fec3c39

Browse files
committed
fix clang-tidy
1 parent 0245660 commit fec3c39

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cpr/response.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Response::Response(std::shared_ptr<CurlHolder> curl, std::string&& p_text, std::
4444
#if LIBCURL_VERSION_NUM >= 0x071500 // 7.21.0
4545
long port = 0;
4646
if (curl_easy_getinfo(curl_->handle, CURLINFO_PRIMARY_PORT, &port) == CURLE_OK) {
47-
primary_port = static_cast<uint16_t>(port);
47+
primary_port = port;
4848
}
4949
#endif
5050
}

include/cpr/response.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class Response {
4343
// NOLINTNEXTLINE(google-runtime-int)
4444
long redirect_count{};
4545
std::string primary_ip{};
46-
uint16_t primary_port{};
46+
std::uint16_t primary_port{};
4747

4848
Response() = default;
4949
Response(std::shared_ptr<CurlHolder> curl, std::string&& p_text, std::string&& p_header_string, Cookies&& p_cookies, Error&& p_error);

0 commit comments

Comments
 (0)