protoc-implicit-insert.patch 444 B

1234567891011
  1. --- a/src/google/protobuf/compiler/csharp/names.cc (index)
  2. +++ b/src/google/protobuf/compiler/csharp/names.cc (working tree)
  3. @@ -210,7 +210,7 @@ TProtoStringType UnderscoresToCamelCase(y_absl::string_view input,
  4. if (result.size() > 0 && ('0' <= result[0] && result[0] <= '9')
  5. && input.size() > 0 && input[0] == '_')
  6. {
  7. - result.insert(0, 1, '_');
  8. + result.insert(static_cast<size_t>(0), 1, '_');
  9. }
  10. return result;
  11. }