Эх сурвалжийг харах

Fixing an issue where I passed the wrong value in, causing an error with long buffers

Ayende Rahien 15 жил өмнө
parent
commit
4d2582081d

+ 1 - 1
src/ProtocolBuffers/CodedInputStream.cs

@@ -863,7 +863,7 @@ namespace Google.ProtocolBuffers {
         }
 
         // Done.
-        return new ByteBuffer(buffer, 0, size);
+        return new ByteBuffer(bytes, 0, size);
       }
     }