Value traverse to Struct parent

This commit is contained in:
Michael Davidsaver
2019-12-20 09:01:09 -08:00
parent a34fe899da
commit 4b5b134e74
5 changed files with 48 additions and 5 deletions
+1
View File
@@ -163,6 +163,7 @@ void from_wire(Buffer& buf, TypeDeserContext& ctxt, unsigned depth)
// descs may be re-allocated (invalidating previous refs.)
auto& fld = ctxt.descs[index];
auto& cfld = ctxt.descs[cindex];
cfld.parent_index = cindex-index;
// update hash
// TODO investigate better ways to combine hashes