fix tree format

This commit is contained in:
Michael Davidsaver
2022-08-12 16:52:26 -07:00
parent 92f728f5c9
commit 3e12931f68
+1 -1
View File
@@ -162,7 +162,7 @@ struct FmtTree {
case StoreType::Integer: if(fmt._showValue) { strm<<" = "<<store->as<int64_t>(); } strm<<"\n"; break;
case StoreType::UInteger: if(fmt._showValue) { strm<<" = "<<store->as<uint64_t>(); } strm<<"\n"; break;
case StoreType::Bool: if(fmt._showValue) { strm<<" = "<<(store->as<bool>() ? "true" : "false"); } strm<<"\n"; break;
case StoreType::String: if(fmt._showValue) { strm<<" = \""<<escape(store->as<std::string>()); } strm<<"\"\n"; break;
case StoreType::String: if(fmt._showValue) { strm<<" = \""<<escape(store->as<std::string>())<<"\""; } strm<<"\n"; break;
case StoreType::Compound: {
auto& fld = store->as<Value>();
if(fld.valid() && desc->code==TypeCode::Union) {