Skip to content

Commit

Permalink
fix minmax folded node
Browse files Browse the repository at this point in the history
  • Loading branch information
tserg committed Dec 27, 2023
1 parent bce87d1 commit 1f9be95
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 @@ -2020,7 +2020,7 @@ def fold(self, node):
raise TypeMismatch("Cannot perform action between dislike numeric types", node)

value = self._eval_fn(left.value, right.value)
return type(node.args[0]).from_node(node, value=value)
return type(left).from_node(node, value=value)

def fetch_call_return(self, node):
self._validate_arg_types(node)
Expand Down

0 comments on commit 1f9be95

Please sign in to comment.