summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/execution_api')
-rw-r--r--src/buildtool/execution_api/common/bytestream_utils.hpp2
-rw-r--r--src/buildtool/execution_api/common/message_limits.hpp2
-rw-r--r--src/buildtool/execution_api/execution_service/capabilities_server.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/buildtool/execution_api/common/bytestream_utils.hpp b/src/buildtool/execution_api/common/bytestream_utils.hpp
index 672ae017..232c6728 100644
--- a/src/buildtool/execution_api/common/bytestream_utils.hpp
+++ b/src/buildtool/execution_api/common/bytestream_utils.hpp
@@ -31,7 +31,7 @@ class ByteStreamUtils final {
public:
// Chunk size for uploads (default size used by BuildBarn)
- static constexpr std::size_t kChunkSize = 64 * 1024;
+ static constexpr std::size_t kChunkSize = 64UL * 1024;
/// \brief Create a read request for the bytestream service to be
/// transferred over the net. Handles serialization/deserialization on its
diff --git a/src/buildtool/execution_api/common/message_limits.hpp b/src/buildtool/execution_api/common/message_limits.hpp
index 47b3b8b1..5ad1818a 100644
--- a/src/buildtool/execution_api/common/message_limits.hpp
+++ b/src/buildtool/execution_api/common/message_limits.hpp
@@ -17,6 +17,6 @@
#include <grpc/grpc.h>
// Max size for batch transfers
-static constexpr std::size_t kMaxBatchTransferSize = 3 * 1024 * 1024;
+static constexpr std::size_t kMaxBatchTransferSize = 3UL * 1024 * 1024;
static_assert(kMaxBatchTransferSize < GRPC_DEFAULT_MAX_RECV_MESSAGE_LENGTH,
"Max batch transfer size too large.");
diff --git a/src/buildtool/execution_api/execution_service/capabilities_server.cpp b/src/buildtool/execution_api/execution_service/capabilities_server.cpp
index 0f3f7855..dc1532e1 100644
--- a/src/buildtool/execution_api/execution_service/capabilities_server.cpp
+++ b/src/buildtool/execution_api/execution_service/capabilities_server.cpp
@@ -36,7 +36,7 @@ auto CapabilitiesServiceImpl::GetCapabilities(
cache.add_digest_functions(
::bazel_re::DigestFunction_Value::DigestFunction_Value_SHA256);
cache.mutable_action_cache_update_capabilities()->set_update_enabled(false);
- static constexpr std::size_t kMaxBatchTransferSize = 1024 * 1024;
+ static constexpr std::size_t kMaxBatchTransferSize = 1024UL * 1024;
cache.set_max_batch_total_size_bytes(kMaxBatchTransferSize);
static_assert(kMaxBatchTransferSize < GRPC_DEFAULT_MAX_RECV_MESSAGE_LENGTH,
"Max batch transfer size too large.");