diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2024-12-16 13:39:36 +0100 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2024-12-19 16:17:46 +0100 |
commit | e2b6d9d3c41d162517019ee0bf9147e398a5b1fa (patch) | |
tree | 248f0a50ec1183836a8257580779cac79ccf51f5 /src/buildtool/file_system/file_system_manager.hpp | |
parent | 827f05a53cb831bd54166ee812752ae3cce2b69b (diff) | |
download | justbuild-e2b6d9d3c41d162517019ee0bf9147e398a5b1fa.tar.gz |
Fix cause of minor warnings
Diffstat (limited to 'src/buildtool/file_system/file_system_manager.hpp')
-rw-r--r-- | src/buildtool/file_system/file_system_manager.hpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/buildtool/file_system/file_system_manager.hpp b/src/buildtool/file_system/file_system_manager.hpp index e5e73415..47f39ee9 100644 --- a/src/buildtool/file_system/file_system_manager.hpp +++ b/src/buildtool/file_system/file_system_manager.hpp @@ -1229,9 +1229,10 @@ class FileSystemManager { ssize_t wlen{}; ssize_t written_len{}; while (written_len < len and - (wlen = write(out.fd, - buf.data() + written_len, // NOLINT - len - written_len)) > 0) { + (wlen = write( + out.fd, + buf.data() + written_len, // NOLINT + static_cast<std::size_t>(len - written_len))) > 0) { written_len += wlen; } if (wlen < 0) { @@ -1260,7 +1261,7 @@ class FileSystemManager { if (len < 0) { return PackError(ERROR_WRITE_OUTPUT, errno); } - pos += len; + pos += static_cast<std::size_t>(len); } return 0; } |