diff options
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2016-01-27 18:59:54 +0200 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2016-01-27 20:34:46 +0200 |
commit | 3b6099faa2d829c74c9576f4aa1ce4b237c997db (patch) | |
tree | dc0822f496f2bd5bf4f03ffc80a22385bb086cd8 /generator/nanopb_generator.py | |
parent | 8d35488bcde1cc6d912d4c875bcf6d2745899d7d (diff) |
Fix a few remaining bugs related to CHAR_BIT!=8 platforms.
Diffstat (limited to 'generator/nanopb_generator.py')
-rwxr-xr-x | generator/nanopb_generator.py | 2 |
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}' |