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