Fix encoded_size #defines for oneof messages.
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>
Fri, 23 Jan 2015 19:29:29 +0000 (21:29 +0200)
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>
Fri, 23 Jan 2015 19:29:29 +0000 (21:29 +0200)
commitd32d04ba1011806fe769f95dc2a88964f1102c6c
tree76eaed039e6dcf8502598c3b1d74a2c29ce4fb18
parent0286a0746ad6f6d525400f720e30d9d13913a556
Fix encoded_size #defines for oneof messages.

The sizes are represented as EncodedSize() instances, which cause
max() operation to sort them by address instead of value. This caused
pretty much random item to be selected for the maximum.

Update issue 141
Status: FixedInGit
generator/nanopb_generator.py
tests/regression/issue_141/SConscript [new file with mode: 0644]
tests/regression/issue_141/testproto.expected [new file with mode: 0644]
tests/regression/issue_141/testproto.proto [new file with mode: 0644]