Fix handling of unsigned 8- or 16-bit enums.
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>
Sat, 12 Sep 2015 10:04:22 +0000 (13:04 +0300)
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>
Sat, 12 Sep 2015 10:07:34 +0000 (13:07 +0300)
commit708084e7883a95dd7fd315cdc909f6664491c043
treec6ec5ffa5478dd2913ee875f7cdde74cb8b9fed8
parent1582038e37771ade214f0627c3ecbf6e1ba69946
Fix handling of unsigned 8- or 16-bit enums.

Previously unsigned enums would throw errors on decoding if the value
went outside the signed range (issue #164).

Currently only helps for enums defined within the same file, but solving
issue #165 will make it work for multiple files also.
generator/nanopb_generator.py
pb.h