From 02d2e5fdd71a798f221ab3098019eaf51ecc5533 Mon Sep 17 00:00:00 2001 From: appledragon Date: Mon, 25 Oct 2021 15:31:06 +0800 Subject: [PATCH] Update stl_util.h --- src/google/protobuf/stubs/stl_util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/google/protobuf/stubs/stl_util.h b/src/google/protobuf/stubs/stl_util.h index 3bc1dbf002..45d28904f9 100644 --- a/src/google/protobuf/stubs/stl_util.h +++ b/src/google/protobuf/stubs/stl_util.h @@ -57,7 +57,7 @@ inline void STLStringResizeUninitializedAmortized(std::string* s, const size_t cap = s->capacity(); if (new_size > cap) { // Make sure to always grow by at least a factor of 2x. - s->reserve(std::max(new_size, 2 * cap)); + s->reserve(std::max(new_size, 2 * cap)); } STLStringResizeUninitialized(s, new_size); }