Skip to content

Commit

Permalink
fix some logic
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed May 15, 2024
1 parent 7e3d6ae commit b7743b2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions vyper/codegen/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -887,9 +887,7 @@ def make_setter(left, right, hi=None):

# we need bounds checks when decoding from memory, otherwise we can
# get oob reads.
assert (hi is not None) == (right.encoding == Encoding.ABI and right.location == MEMORY)
if hi is not None:
# TODO: do we actually need this check?
if hi is None and right.encoding == Encoding.ABI and right.location == MEMORY:
hi = add_ofst(right, _abi_payload_size(right))

# For types which occupy just one word we can use single load/store
Expand Down

0 comments on commit b7743b2

Please sign in to comment.