fix Delta print of Union

This commit is contained in:
Michael Davidsaver
2020-04-17 14:15:16 -07:00
parent d65abb28ea
commit 7e6a08def7
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -16,7 +16,7 @@ struct FmtDelta {
void field(const std::string& prefix, const Value& val, bool verytop)
{
if(!val.isMarked(true,false))
if(verytop && !val.isMarked())
return;
strm<<prefix;
@@ -63,6 +63,7 @@ struct FmtDelta {
for(auto idx : range(desc->members.size())) {
if(udesc == &desc->members[idx]) {
cprefix+=desc->miter[idx].first;
break;
}
}
}