From 4f37c083d532a782e478b2cef6a02d028613564d Mon Sep 17 00:00:00 2001 From: Petteri Aimonen Date: Sun, 22 Dec 2013 23:24:02 +0200 Subject: Negative int32 values take 10 bytes now. --- generator/nanopb_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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), -- cgit 1.2.3-korg