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
path: root/tests
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2017-10-01 22:16:38 +0300
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2017-10-01 22:16:38 +0300
commit107842ce2e697c654c50fea9d25fdbe8d39b2f41 (patch)
tree0d66cdad3ab9386f6df3c8237ca4b8290317e716 /tests
parent7f70f890b94727bd6d507085a739b45ca0307814 (diff)
Small fix to decode_map example
Diffstat (limited to 'tests')
-rw-r--r--tests/map/decode_map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/map/decode_map.c b/tests/map/decode_map.c
index 9e81b12..c798b03 100644
--- a/tests/map/decode_map.c
+++ b/tests/map/decode_map.c
@@ -13,7 +13,7 @@
MyMessage_NumbersEntry *find_entry(MyMessage *msg, const char *key)
{
int i;
- for (i = 0; i < pb_arraysize(MyMessage, numbers); i++)
+ for (i = 0; i < msg->numbers_count; i++)
{
if (strcmp(msg->numbers[i].key, key) == 0)
{