aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/firrtl/passes/ConvertFixedToSInt.scala
diff options
context:
space:
mode:
authorStevo Bailey2017-02-22 17:04:40 -0800
committerAdam Izraelevitz2017-02-22 17:17:45 -0800
commit5cbf5ea3723376bde20167793d5454104c524867 (patch)
tree7cffc3343845a49e60eb7803ed6e2a1a44937f53 /src/main/scala/firrtl/passes/ConvertFixedToSInt.scala
parent7b4ab673ef1b5716f8bbe689faaf474c60a0d2fd (diff)
[stevo]: Adams fix
Diffstat (limited to 'src/main/scala/firrtl/passes/ConvertFixedToSInt.scala')
-rw-r--r--src/main/scala/firrtl/passes/ConvertFixedToSInt.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/firrtl/passes/ConvertFixedToSInt.scala b/src/main/scala/firrtl/passes/ConvertFixedToSInt.scala
index 3ddfb124..823fb7fb 100644
--- a/src/main/scala/firrtl/passes/ConvertFixedToSInt.scala
+++ b/src/main/scala/firrtl/passes/ConvertFixedToSInt.scala
@@ -31,7 +31,7 @@ object ConvertFixedToSInt extends Pass {
def toSIntType(t: Type): Type = t match {
case FixedType(IntWidth(w), IntWidth(p)) => SIntType(IntWidth(w))
case FixedType(w, p) => error("Shouldn't be here")
- case _ => t
+ case _ => t map toSIntType
}
def run(c: Circuit): Circuit = {
val moduleTypes = mutable.HashMap[String,Type]()