Skip to content

Commit 236b7b8

Browse files
committed
merge
2 parents be45ad4 + 7cafce4 commit 236b7b8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Firestore/core/src/api/pipeline.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ namespace firebase {
2525
namespace firestore {
2626
namespace api {
2727

28+
using nanopb::CheckedSize;
29+
2830
Pipeline Pipeline::AddingStage(std::shared_ptr<Stage> stage) {
2931
auto copy = std::vector<std::shared_ptr<Stage>>(this->stages_);
3032
copy.push_back(stage);
@@ -45,7 +47,7 @@ google_firestore_v1_Value Pipeline::to_proto() const {
4547

4648
result.which_value_type = google_firestore_v1_Value_pipeline_value_tag;
4749
result.pipeline_value = google_firestore_v1_Pipeline{};
48-
result.pipeline_value.stages_count = this->stages_.size();
50+
result.pipeline_value.stages_count = CheckedSize(this->stages_.size());
4951
nanopb::SetRepeatedField(
5052
&result.pipeline_value.stages, &result.pipeline_value.stages_count,
5153
stages_,

0 commit comments

Comments
 (0)