Skip to content

Commit

Permalink
Fixed: Non-repeated empty messages are always present on the wire, see
Browse files Browse the repository at this point in the history
  • Loading branch information
dcodeIO committed Dec 22, 2016
1 parent 948ca2e commit 741b6d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/encoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function encoder(mtype) {
}

if (wireType === undefined)
genEncodeType(gen, field, i, "m" + prop);
genEncodeType(gen, field, i, "m" + prop, true);
else gen
("w.uint32(%d).%s(m%s)", (field.id << 3 | wireType) >>> 0, type, prop);

Expand Down

0 comments on commit 741b6d8

Please sign in to comment.