From 741b6d8fde84d9574676a729a29a428d99f0a0a0 Mon Sep 17 00:00:00 2001 From: dcodeIO Date: Thu, 22 Dec 2016 13:35:55 +0100 Subject: [PATCH] Fixed: Non-repeated empty messages are always present on the wire, see #581 --- src/encoder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/encoder.js b/src/encoder.js index 3455f46b9..589fe87af 100644 --- a/src/encoder.js +++ b/src/encoder.js @@ -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);