diff options
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2013-12-22 23:24:02 +0200 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2013-12-22 23:24:02 +0200 |
commit | 4f37c083d532a782e478b2cef6a02d028613564d (patch) | |
tree | 5bff5eeec6cbe9690f883cc46411cc2db910bb90 /generator/nanopb_generator.py | |
parent | ed93db08dc19290ac3232abd1e7480c3d18c84a5 (diff) |
Negative int32 values take 10 bytes now.
Diffstat (limited to 'generator/nanopb_generator.py')
-rwxr-xr-x | generator/nanopb_generator.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generator/nanopb_generator.py b/generator/nanopb_generator.py index a4e4cc7b..468c0d2e 100755 --- a/generator/nanopb_generator.py +++ b/generator/nanopb_generator.py @@ -46,7 +46,7 @@ datatypes = { FieldD.TYPE_FIXED32: ('uint32_t', 'FIXED32', 4), FieldD.TYPE_FIXED64: ('uint64_t', 'FIXED64', 8), FieldD.TYPE_FLOAT: ('float', 'FLOAT', 4), - FieldD.TYPE_INT32: ('int32_t', 'INT32', 5), + FieldD.TYPE_INT32: ('int32_t', 'INT32', 10), FieldD.TYPE_INT64: ('int64_t', 'INT64', 10), FieldD.TYPE_SFIXED32: ('int32_t', 'SFIXED32', 4), FieldD.TYPE_SFIXED64: ('int64_t', 'SFIXED64', 8), |