Skip to content

Commit

Permalink
Fix "piqi to-proto" broken handling of .protobuf-packed
Browse files Browse the repository at this point in the history
Only the legacy .wire-packed was handled correctly. The newer
.protobuf-packed was ignored when converting .piqi to .proto
  • Loading branch information
alavrik committed Apr 26, 2018
1 parent 8c9b0f8 commit aa4c1cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/to_proto.ml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit aa4c1cc

Please sign in to comment.