Skip to content

Commit

Permalink
fix slice
Browse files Browse the repository at this point in the history
  • Loading branch information
tserg committed Nov 12, 2023
1 parent 50e5000 commit a325b99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vyper/builtins/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def fetch_call_return(self, node):
raise ArgumentException(f"slice out of bounds for {arg_type}", node)

# we know the length statically
length = length_literal if not None else 0
length = length_literal if length_literal is not None else 0
if isinstance(arg_type, StringT):
return_type = StringT(length)
else:
Expand Down

0 comments on commit a325b99

Please sign in to comment.