Browse Source

fix codegen

Jan Tattermusch 5 years ago
parent
commit
2b9a73e948
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/google/protobuf/compiler/csharp/csharp_repeated_enum_field.cc

+ 1 - 1
src/google/protobuf/compiler/csharp/csharp_repeated_enum_field.cc

@@ -98,7 +98,7 @@ void RepeatedEnumFieldGenerator::GenerateSerializationCode(io::Printer* printer,
     variables_,
     use_write_context
     ? "$name$_.WriteTo(ref output, _repeated_$name$_codec);\n"
-    : "$name$_.WriteTo(ref output, _repeated_$name$_codec);\n");
+    : "$name$_.WriteTo(output, _repeated_$name$_codec);\n");
 }
 
 void RepeatedEnumFieldGenerator::GenerateSerializedSizeCode(io::Printer* printer) {