From: whitequark Date: Sun, 13 Oct 2019 01:37:11 +0000 (+0000) Subject: compat.fhdl.bitcontainer: update Value.wrap call. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=42da365681bc166a8bec83caa76ac413c5eedcbd;p=nmigen.git compat.fhdl.bitcontainer: update Value.wrap call. --- 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()