Skip to content

Commit

Permalink
fix: warnings on windows clangcl
Browse files Browse the repository at this point in the history
  • Loading branch information
jeefo committed Oct 17, 2024
1 parent 4477ddd commit c0d1357
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crlib/http.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ CR_DECLARE_SCOPED_ENUM (HttpClientResult,
Undefined = -4,
NoLocalFile = -5,
LocalFileExists = -6,
NetworkDisconnected = -7
NetworkUnavilable = -7
)

CR_NAMESPACE_BEGIN
Expand Down Expand Up @@ -159,7 +159,7 @@ namespace detail {

class Socket final : public NonCopyable {
private:
static constexpr uint32_t kInvalidSocket = static_cast <uint32_t> (~0);
static constexpr int32_t kInvalidSocket = 0xffffff;

private:
int32_t socket_;
Expand Down Expand Up @@ -369,7 +369,7 @@ class HttpClient final : public Singleton <HttpClient> {

// check if have network connection
if (!hasConnection) {
statusCode_ = HttpClientResult::NetworkDisconnected;
statusCode_ = HttpClientResult::NetworkUnavilable;
return false;
}

Expand Down Expand Up @@ -445,7 +445,7 @@ class HttpClient final : public Singleton <HttpClient> {

// check if have network connection
if (!hasConnection) {
statusCode_ = HttpClientResult::NetworkDisconnected;
statusCode_ = HttpClientResult::NetworkUnavilable;
return false;
}

Expand Down

0 comments on commit c0d1357

Please sign in to comment.