diff options
author | Reinis Veips <reinis.veips@atlasaero.space> | 2024-01-05 17:46:51 +0300 |
---|---|---|
committer | Petteri Aimonen <jpa@github.mail.kapsi.fi> | 2024-01-05 20:31:23 +0300 |
commit | cf26d28b88010dd3ac94e0cba64d4a71522154bc (patch) | |
tree | c7ad81e2bb907b1d77dd9791ace52a2d1a70ca43 | |
parent | e163b3395d91f930146b27cb8e666498ce8c4102 (diff) |
--cpp-descriptors: change msgid type to uint32_t
-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 062d54a..8a1dc5f 100755 --- a/generator/nanopb_generator.py +++ b/generator/nanopb_generator.py @@ -1528,7 +1528,7 @@ class Message(ProtoElement): result += ' static inline bool has_msgid() {\n' result += ' return %s;\n' % ("true" if hasattr(self, "msgid") else "false", ) result += ' }\n' - result += ' static inline int32_t msgid() {\n' + result += ' static inline uint32_t msgid() {\n' result += ' return %d;\n' % (getattr(self, "msgid", 0), ) result += ' }\n' result += '};' |