This commit is contained in:
Michael Davidsaver
2020-01-28 20:58:05 -08:00
parent c78ec7718b
commit 584cf5b450
4 changed files with 12 additions and 9 deletions
+1 -4
View File
@@ -447,10 +447,7 @@ void to_wire_valid(Buffer& buf, const Value& val)
to_wire(buf, valid);
for(auto bit : range(desc->size())) {
if(!(store.get()+bit)->valid)
continue;
for(auto bit : valid.onlySet()) {
std::shared_ptr<const FieldStorage> cstore(store, store.get()+bit);
to_wire_field(buf, desc+bit, cstore);
}