Explorar o código

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

Ayende Rahien %!s(int64=16) %!d(string=hai) anos
pai
achega
4d2582081d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/ProtocolBuffers/CodedInputStream.cs

+ 1 - 1
src/ProtocolBuffers/CodedInputStream.cs

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