diff options
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2012-01-12 18:10:12 +0200 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2012-01-12 18:10:12 +0200 |
commit | a1adf398052bf2c78a457c484efbc5ec0258374e (patch) | |
tree | a0fdcb35c705c1015e66091f6733a7dd1238683d | |
parent | b519edba9d98bcd89bde389b4845b2f19a35cdf3 (diff) |
Fixed a bug in the generator that caused a compiler error on sfixed32 and sfixed64 fields.
-rw-r--r-- | generator/nanopb_generator.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generator/nanopb_generator.py b/generator/nanopb_generator.py index 4d5aaaca..e1d99c97 100644 --- a/generator/nanopb_generator.py +++ b/generator/nanopb_generator.py @@ -14,8 +14,8 @@ datatypes = { FieldD.TYPE_FLOAT: ('float', 'PB_LTYPE_FIXED32'), FieldD.TYPE_INT32: ('int32_t', 'PB_LTYPE_VARINT'), FieldD.TYPE_INT64: ('int64_t', 'PB_LTYPE_VARINT'), - FieldD.TYPE_SFIXED32: ('int32_t', 'PB_LTYPE_FIXED'), - FieldD.TYPE_SFIXED64: ('int64_t', 'PB_LTYPE_FIXED'), + FieldD.TYPE_SFIXED32: ('int32_t', 'PB_LTYPE_FIXED32'), + FieldD.TYPE_SFIXED64: ('int64_t', 'PB_LTYPE_FIXED64'), FieldD.TYPE_SINT32: ('int32_t', 'PB_LTYPE_SVARINT'), FieldD.TYPE_SINT64: ('int64_t', 'PB_LTYPE_SVARINT'), FieldD.TYPE_UINT32: ('uint32_t', 'PB_LTYPE_VARINT'), |