From a1adf398052bf2c78a457c484efbc5ec0258374e Mon Sep 17 00:00:00 2001 From: Petteri Aimonen Date: Thu, 12 Jan 2012 18:10:12 +0200 Subject: Fixed a bug in the generator that caused a compiler error on sfixed32 and sfixed64 fields. --- generator/nanopb_generator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'generator') 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'), -- cgit 1.2.3-korg