Skip to content

Commit

Permalink
rewrite shift check
Browse files Browse the repository at this point in the history
  • Loading branch information
tserg committed Nov 16, 2023
1 parent c7585c6 commit 12ac785
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 @@ -1468,7 +1468,7 @@ def evaluate(self, node):

validate_call_args(node, 2)
args = [i._metadata.get("folded_value") for i in node.args]
if [i for i in args if not isinstance(i, vy_ast.Int)]:
if any(not isinstance(i, vy_ast.Int) for i in args):
raise UnfoldableNode
value, shift = [i.value for i in args]
if value < 0 or value >= 2**256:
Expand Down

0 comments on commit 12ac785

Please sign in to comment.