Add a 'found' field to pb_extension_t.

Update issue 112
Status: FixedInGit
This commit is contained in:
Petteri Aimonen
2014-04-05 11:11:05 +03:00
parent 70dee34da6
commit e5b855fec5
4 changed files with 8 additions and 2 deletions

View File

@@ -670,7 +670,6 @@ static bool checkreturn default_extension_decoder(pb_istream_t *stream,
{
const pb_field_t *field = (const pb_field_t*)extension->type->arg;
pb_field_iterator_t iter;
bool dummy;
if (field->tag != tag)
return true;
@@ -681,7 +680,7 @@ static bool checkreturn default_extension_decoder(pb_istream_t *stream,
iter.required_field_index = 0;
iter.dest_struct = extension->dest;
iter.pData = extension->dest;
iter.pSize = &dummy;
iter.pSize = &extension->found;
return decode_field(stream, wire_type, &iter);
}