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:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2023-10-19 12:21:24 +0300
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2023-10-19 12:21:24 +0300
commit9766c4589f61b76807a0a394040c15a2d23ef24c (patch)
treea55ef678849e102ccdc1ffb645f1fe41a60a5df7
parent499c696de469f2f5aa3f209af8fdc42f96525e0b (diff)
Fix build failure on MSVC
-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 7b3d7ee..be41e34 100755
--- a/generator/nanopb_generator.py
+++ b/generator/nanopb_generator.py
@@ -892,7 +892,7 @@ class Field(ProtoElement):
elif self.callback_datatype.strip().endswith('*'):
outer_init = 'NULL'
else:
- outer_init = '{}'
+ outer_init = '{0}'
if self.pbtype == 'MSG_W_CB' and self.rules in ['REPEATED', 'OPTIONAL']:
outer_init = '{{NULL}, NULL}, ' + outer_init