summaryrefslogtreecommitdiffstats
path: root/generator/nanopb_generator.py
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2016-01-27 18:59:54 +0200
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2016-01-27 20:34:46 +0200
commit3b6099faa2d829c74c9576f4aa1ce4b237c997db (patch)
treedc0822f496f2bd5bf4f03ffc80a22385bb086cd8 /generator/nanopb_generator.py
parent8d35488bcde1cc6d912d4c875bcf6d2745899d7d (diff)
Fix a few remaining bugs related to CHAR_BIT!=8 platforms.
Diffstat (limited to 'generator/nanopb_generator.py')
-rwxr-xr-xgenerator/nanopb_generator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/generator/nanopb_generator.py b/generator/nanopb_generator.py
index 0748e630..d16fd828 100755
--- a/generator/nanopb_generator.py
+++ b/generator/nanopb_generator.py
@@ -809,7 +809,7 @@ class Message:
if not self.ordered_fields:
# Empty structs are not allowed in C standard.
# Therefore add a dummy field if an empty message occurs.
- result += ' uint8_t dummy_field;'
+ result += ' char dummy_field;'
result += '\n'.join([str(f) for f in self.ordered_fields])
result += '\n}'