Permalink
Browse files

Fixed: Always decode packed/non-packed based on wire format only, see #…

  • Loading branch information...
dcodeIO committed Jan 5, 2017
1 parent e027a3c commit 11fb1a66ae31af675d0d9ce0240cd8e920ae75e7

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
BIN +1 Byte (100%) dist/noparse/protobuf.min.js.gz
Binary file not shown.

Large diffs are not rendered by default.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
BIN +7 Bytes (100%) dist/protobuf.min.js.gz
Binary file not shown.

Large diffs are not rendered by default.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
BIN +0 Bytes (100%) dist/runtime/protobuf.min.js.gz
Binary file not shown.
@@ -55,8 +55,8 @@ function decoder(mtype) {
("if(!(%s&&%s.length))", ref, ref)
("%s=[]", ref);
// Packed
if (field.packed && types.packed[type] !== undefined) gen
// Packable (always check for forward and backward compatiblity)
if (/* field.packed && */types.packed[type] !== undefined) gen
("if((t&7)===2){")
("var c2=r.uint32()+r.pos")
("while(r.pos<c2)")

0 comments on commit 11fb1a6

Please sign in to comment.