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/git_operations/git_repo_remote.cpp | |
parent | 419a458ad9d4383eb47d51fe8e4408a0e240c2f1 (diff) | |
download | justbuild-277be6dd08633dbebfda93afdfc6b5cb57e053e0.tar.gz |
Use properly included standard library types by default
Diffstat (limited to 'src/other_tools/git_operations/git_repo_remote.cpp')
-rw-r--r-- | src/other_tools/git_operations/git_repo_remote.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/other_tools/git_operations/git_repo_remote.cpp b/src/other_tools/git_operations/git_repo_remote.cpp index 9820f352..421de1e2 100644 --- a/src/other_tools/git_operations/git_repo_remote.cpp +++ b/src/other_tools/git_operations/git_repo_remote.cpp @@ -14,6 +14,7 @@ #include "src/other_tools/git_operations/git_repo_remote.hpp" +#include <cstddef> #include <utility> // std::move #include "fmt/core.h" @@ -230,7 +231,7 @@ auto GitRepoRemote::GetCommitFromRemote(std::shared_ptr<git_config> cfg, // get the list of refs from remote // NOTE: refs will be owned by remote, so we DON'T have to free it! git_remote_head const** refs = nullptr; - size_t refs_len = 0; + std::size_t refs_len = 0; if (git_remote_ls(&refs, &refs_len, remote.get()) != 0) { (*logger)( fmt::format("Refs retrieval from remote {} failed with:\n{}", |