Skip to content

Commit

Permalink
Workaround for GCC12 bug illustrated by https://godbolt.org/z/Pe5aE59xG
Browse files Browse the repository at this point in the history
Fixes google#4108

PiperOrigin-RevId: 499556061
Change-Id: I1cb1564f9b77e1825fddc9236965f4a3b661d96a
  • Loading branch information
derekmauro authored and kunitoki committed Nov 4, 2023
1 parent 1ae83a6 commit d51f930
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion googletest/src/gtest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4888,7 +4888,8 @@ std::string StreamingListener::UrlEncode(const char* str) {
case '=':
case '&':
case '\n':
result.append("%" + String::FormatByte(static_cast<unsigned char>(ch)));
result.push_back('%');
result.append(String::FormatByte(static_cast<unsigned char>(ch)));
break;
default:
result.push_back(ch);
Expand Down

0 comments on commit d51f930

Please sign in to comment.