From e2b6d9d3c41d162517019ee0bf9147e398a5b1fa Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Mon, 16 Dec 2024 13:39:36 +0100 Subject: Fix cause of minor warnings --- src/buildtool/file_system/file_system_manager.hpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/buildtool/file_system/file_system_manager.hpp') 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(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(len); } return 0; } -- cgit v1.2.3