Skip to content

Commit

Permalink
improve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tserg committed May 6, 2023
1 parent cc1d76a commit 7fcbacd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vyper/semantics/types/bytestrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ def compare_type(self, other):
return False

if self._length and other._length:
# when comparing two literals, invert the comparison result so that the smaller
# type can be widened by deriving the larger of common types during annotation
# when comparing two literals, invert the comparison so that the
# larger type is derived during annotation of the smaller type for widening
if self._is_literal and other._is_literal:
return self._length <= other._length

# otherwise, ensure that the current length fits within the other
# otherwise, ensure the current length fits within the other
return self._length >= other._length

# relax typechecking if length has not been set for other type
Expand Down

0 comments on commit 7fcbacd

Please sign in to comment.