summaryrefslogtreecommitdiff
path: root/src/buildtool/storage/file_chunker.cpp
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-04-08 13:18:22 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-04-08 15:19:50 +0200
commit277be6dd08633dbebfda93afdfc6b5cb57e053e0 (patch)
tree6c86157c7f93636459361264054753a1dc9d33e9 /src/buildtool/storage/file_chunker.cpp
parent419a458ad9d4383eb47d51fe8e4408a0e240c2f1 (diff)
downloadjustbuild-277be6dd08633dbebfda93afdfc6b5cb57e053e0.tar.gz
Use properly included standard library types by default
Diffstat (limited to 'src/buildtool/storage/file_chunker.cpp')
-rw-r--r--src/buildtool/storage/file_chunker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buildtool/storage/file_chunker.cpp b/src/buildtool/storage/file_chunker.cpp
index af318501..8e747900 100644
--- a/src/buildtool/storage/file_chunker.cpp
+++ b/src/buildtool/storage/file_chunker.cpp
@@ -99,14 +99,14 @@ auto FileChunker::NextChunkBoundary() noexcept -> std::size_t {
}
for (; i < normal_size; i++) {
fp = (fp << 1U) +
- gsl::at(gear_table, static_cast<uint8_t>(buffer_[pos_ + i]));
+ gsl::at(gear_table, static_cast<std::uint8_t>(buffer_[pos_ + i]));
if ((fp & kMaskS) == 0) {
return i; // if the masked bits are all '0'
}
}
for (; i < n; i++) {
fp = (fp << 1U) +
- gsl::at(gear_table, static_cast<uint8_t>(buffer_[pos_ + i]));
+ gsl::at(gear_table, static_cast<std::uint8_t>(buffer_[pos_ + i]));
if ((fp & kMaskL) == 0) {
return i; // if the masked bits are all '0'
}