Skip to content

Commit

Permalink
fix literal case
Browse files Browse the repository at this point in the history
  • Loading branch information
tserg committed Oct 4, 2023
1 parent df13788 commit ccbbbab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/parser/functions/test_slice.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,11 @@ def _get_contract():
if (
(start + length > data_length and literal_start and literal_length)
or (literal_length and length > data_length)
or (location == "literal" and len(bytesdata) > length_bound and not literal_length)
or (
location == "literal"
and len(bytesdata) > length_bound
and ((literal_length and length > length_bound) or (not literal_length))
)
or (literal_start and start > data_length)
or (literal_length and length < 1)
):
Expand Down

0 comments on commit ccbbbab

Please sign in to comment.