Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nanopb/nanopb.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReinis Veips <reinis.veips@atlasaero.space>2024-01-05 17:46:51 +0300
committerPetteri Aimonen <jpa@github.mail.kapsi.fi>2024-01-05 20:31:23 +0300
commitcf26d28b88010dd3ac94e0cba64d4a71522154bc (patch)
treec7ad81e2bb907b1d77dd9791ace52a2d1a70ca43
parente163b3395d91f930146b27cb8e666498ce8c4102 (diff)
--cpp-descriptors: change msgid type to uint32_t
-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 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 += '};'