Sfoglia il codice sorgente

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

Ayende Rahien 15 anni fa
parent
commit
4d2582081d
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/ProtocolBuffers/CodedInputStream.cs

+ 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);
       }
     }