summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/bazel_msg
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/execution_api/bazel_msg')
-rw-r--r--src/buildtool/execution_api/bazel_msg/bazel_msg_factory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildtool/execution_api/bazel_msg/bazel_msg_factory.cpp b/src/buildtool/execution_api/bazel_msg/bazel_msg_factory.cpp
index 0bcd11cc..4a29f5f7 100644
--- a/src/buildtool/execution_api/bazel_msg/bazel_msg_factory.cpp
+++ b/src/buildtool/execution_api/bazel_msg/bazel_msg_factory.cpp
@@ -204,7 +204,7 @@ struct DirectoryNodeBundle final {
auto duration = std::make_unique<google::protobuf::Duration>();
duration->set_seconds(sec.count());
- duration->set_nanos(nanos.count());
+ duration->set_nanos(static_cast<int>(nanos.count()));
bazel_re::Action msg;
msg.set_do_not_cache(request.skip_action_cache);