aboutsummaryrefslogtreecommitdiffstats
path: root/generator/nanopb_generator.py
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2012-01-12 18:10:12 +0200
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2012-01-12 18:10:12 +0200
commita1adf398052bf2c78a457c484efbc5ec0258374e (patch)
treea0fdcb35c705c1015e66091f6733a7dd1238683d /generator/nanopb_generator.py
parentb519edba9d98bcd89bde389b4845b2f19a35cdf3 (diff)
Fixed a bug in the generator that caused a compiler error on sfixed32 and sfixed64 fields.
Diffstat (limited to 'generator/nanopb_generator.py')
-rw-r--r--generator/nanopb_generator.py4
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'),