From 42da365681bc166a8bec83caa76ac413c5eedcbd Mon Sep 17 00:00:00 2001 From: whitequark Date: Sun, 13 Oct 2019 01:37:11 +0000 Subject: [PATCH] compat.fhdl.bitcontainer: update Value.wrap call. --- nmigen/compat/fhdl/bitcontainer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nmigen/compat/fhdl/bitcontainer.py b/nmigen/compat/fhdl/bitcontainer.py index a7c44e9..b52887d 100644 --- a/nmigen/compat/fhdl/bitcontainer.py +++ b/nmigen/compat/fhdl/bitcontainer.py @@ -18,4 +18,4 @@ def bits_for(n, require_sign_bit=False): @deprecated("instead of `value_bits_sign(v)`, use `v.shape()`") def value_bits_sign(v): - return ast.Value.wrap(v).shape() + return ast.Value.cast(v).shape() -- 2.30.2