From 599ed8d4700d76b36ab201b37aa0f41df1a7f248 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 13 Jul 2012 17:40:49 +0200 Subject: [PATCH] fhdl: fix value_bv for operators --- migen/fhdl/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migen/fhdl/tools.py b/migen/fhdl/tools.py index d27f23bb..a753d85e 100644 --- a/migen/fhdl/tools.py +++ b/migen/fhdl/tools.py @@ -132,7 +132,7 @@ def value_bv(v): elif isinstance(v, Signal): return v.bv elif isinstance(v, _Operator): - obv = map(value_bv, v.operands) + obv = list(map(value_bv, v.operands)) if v.op == "+" or v.op == "-": return BV(max(obv[0].width, obv[1].width) + 1, obv[0].signed and obv[1].signed) -- 2.30.2