Skip to content

Commit

Permalink
Use .waiveAll when constructing BundleMap subsets
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryz123 committed Aug 21, 2023
1 parent ecacc48 commit d71cfe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/util/BundleMap.scala
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class BundleMap(val fields: Seq[BundleFieldBase]) extends Record {
// Create a new BundleMap with only the selected Keys retained
def subset(fn: BundleKeyBase => Boolean): BundleMap = {
val out = Wire(BundleMap(fields.filter(x => fn(x.key))))
out :<= this
out :<= this.waiveAll
out
}
}
Expand Down

0 comments on commit d71cfe4

Please sign in to comment.