aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAdam Izraelevitz2016-04-08 17:41:52 -0700
committerjackkoenig2016-04-09 18:48:15 -0700
commitb0723eca35e1ac6bae60e233c3319d3e85a6984b (patch)
tree2a8dc900e74013409dc9c683298964a5d0dacea3 /src/main
parente993fb5d08ad0db35516a94cb789f06980c98700 (diff)
Fix bundle type equality
Was not checking for length of bundles, so if the bundles matched but one had more fields, it was not caught.
Diffstat (limited to 'src/main')
-rw-r--r--src/main/scala/firrtl/WIR.scala1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/scala/firrtl/WIR.scala b/src/main/scala/firrtl/WIR.scala
index 0ab51085..05173f56 100644
--- a/src/main/scala/firrtl/WIR.scala
+++ b/src/main/scala/firrtl/WIR.scala
@@ -125,6 +125,7 @@ class WrappedType (val t:Type) {
if (f1.name != f2.name) ret = false
if (wt(f1.tpe) != wt(f2.tpe)) ret = false
}}
+ if (t1.fields.size != t2.fields.size) ret = false
ret
}
case (t1,t2) => false