From b0723eca35e1ac6bae60e233c3319d3e85a6984b Mon Sep 17 00:00:00 2001 From: Adam Izraelevitz Date: Fri, 8 Apr 2016 17:41:52 -0700 Subject: 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. --- src/main/scala/firrtl/WIR.scala | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main') 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 -- cgit v1.2.3