From aa4c1cc375f453d0b643a87ac161d6ceadf27003 Mon Sep 17 00:00:00 2001 From: Anton Lavrik Date: Thu, 26 Apr 2018 00:21:00 -0700 Subject: [PATCH] Fix "piqi to-proto" broken handling of .protobuf-packed Only the legacy .wire-packed was handled correctly. The newer .protobuf-packed was ignored when converting .piqi to .proto --- src/to_proto.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/to_proto.ml b/src/to_proto.ml index a4cbb55a..d92a03e7 100644 --- a/src/to_proto.ml +++ b/src/to_proto.ml @@ -216,7 +216,7 @@ let gen_default x = let gen_field parent f = let open F in let packed = - if f.wire_packed + if f.protobuf_packed then " [packed = true]" else "" in @@ -355,7 +355,7 @@ let gen_list ?name ?parent l = let parent = recalc_import_parent ?parent l.parent in let name = recalc_name ?name l.protobuf_name in let packed = - if l.wire_packed + if l.protobuf_packed then " [packed = true]" else "" in