Update parse_annotation.cc

This commit is contained in:
tg-at-google 2020-06-04 11:47:29 -04:00 committed by GitHub
parent c41905a6fd
commit f25945196e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,7 +51,7 @@ std::vector<absl::string_view> SplitPairs(absl::string_view metadata) {
std::vector<absl::string_view> key_value_pairs; std::vector<absl::string_view> key_value_pairs;
std::stack<char> quotes; std::stack<char> quotes;
size_t start = 0, end = 0; size_t start = 0, end = 0;
for (; static_cast<size_t>(end) < metadata.size(); ++end) { for (; end < metadata.size(); ++end) {
char ch = metadata[end]; char ch = metadata[end];
switch (ch) { switch (ch) {
case '\"': case '\"':