Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 012cf9d

Browse files
committed
curl_utils: Use unsigned to make msvc happy
1 parent 2c74356 commit 012cf9d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

engine/utils/curl_utils.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ std::shared_ptr<Header> GetHeaders(const std::string& url) {
8686

8787
// for debug purpose
8888
auto min_token_size = 6;
89-
if (token.size() < (uint64_t) min_token_size) {
89+
if (token.size() < (unsigned) min_token_size) {
9090
CTL_WRN("Hugging Face token is too short");
9191
} else {
9292
CTL_INF("Using authentication with Hugging Face token: " +
@@ -110,7 +110,7 @@ std::shared_ptr<Header> GetHeaders(const std::string& url) {
110110

111111
// for debug purpose
112112
auto min_token_size = 6;
113-
if (gh_token.size() < (u_int64_t) min_token_size) {
113+
if (gh_token.size() < (unsigned) min_token_size) {
114114
CTL_WRN("Github token is too short");
115115
} else {
116116
CTL_INF("Using authentication with Github token: " +
@@ -373,4 +373,4 @@ cpp::result<Json::Value, std::string> SimplePatchJson(const std::string& url,
373373

374374
return root;
375375
}
376-
} // namespace curl_utils
376+
} // namespace curl_utils

0 commit comments

Comments
 (0)