mirror of
https://github.com/JakeHillion/object-introspection.git
synced 2024-11-09 21:24:14 +00:00
Fix double parseVarint for ParsedData::Sum
This commit is contained in:
parent
deb7dcdf1c
commit
36452a2471
@ -51,7 +51,7 @@ ParsedData ParsedData::parse(std::vector<uint8_t>::const_iterator& it,
|
|||||||
auto index = parseVarint(it);
|
auto index = parseVarint(it);
|
||||||
assert(index < ty.variants.size());
|
assert(index < ty.variants.size());
|
||||||
return ParsedData::Sum{
|
return ParsedData::Sum{
|
||||||
.index = parseVarint(it),
|
.index = index,
|
||||||
.value = {it, ty.variants[index]},
|
.value = {it, ty.variants[index]},
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user