compat.fhdl.bitcontainer: update Value.wrap call.
This commit is contained in:
parent
1334bd6a8b
commit
d2c4c7c060
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue