diff options
| author | chick | 2016-09-23 16:12:17 -0700 |
|---|---|---|
| committer | Donggyu Kim | 2016-09-25 14:39:44 -0700 |
| commit | c534f4450541511de8dc53d65aede2815c16ea4d (patch) | |
| tree | 18f7761fd8bb9a1efc9027963f544dc0145b6c8b /src/main/scala/firrtl/passes/PadWidths.scala | |
| parent | 3399c5e0469e821b640309f9e79448cad0f584a8 (diff) | |
Fix Anonymous function convertible to a method value
if methods has parens, then referencing without parens
is a method value, you don't need following underscore
Diffstat (limited to 'src/main/scala/firrtl/passes/PadWidths.scala')
| -rw-r--r-- | src/main/scala/firrtl/passes/PadWidths.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/firrtl/passes/PadWidths.scala b/src/main/scala/firrtl/passes/PadWidths.scala index e0a2e304..9f1d906c 100644 --- a/src/main/scala/firrtl/passes/PadWidths.scala +++ b/src/main/scala/firrtl/passes/PadWidths.scala @@ -39,7 +39,7 @@ object PadWidths extends Pass { case Lt | Leq | Gt | Geq | Eq | Neq | Not | And | Or | Xor | Add | Sub | Mul | Div | Rem | Shr => // sensitive ops - e map fixup((e.args map (width(_)) foldLeft 0)(math.max(_, _))) + e map fixup((e.args map width _ foldLeft 0)(math.max)) case Dshl => // special case as args aren't all same width e copy (op = Dshlw, args = Seq(fixup(width(e.tpe))(e.args.head), e.args(1))) |
