Skip to content

Commit 20b2ed7

Browse files
committed
Address feedback
1 parent 96f79cc commit 20b2ed7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mypyc/irbuild/ll_builder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1661,8 +1661,8 @@ def unary_not(self, value: Value, line: int) -> Value:
16611661
"""Perform unary 'not'."""
16621662
typ = value.type
16631663
if is_bool_or_bit_rprimitive(typ):
1664-
mask = Integer(1, value.type, line)
1665-
return self.int_op(value.type, value, mask, IntOp.XOR, line)
1664+
mask = Integer(1, typ, line)
1665+
return self.int_op(typ, value, mask, IntOp.XOR, line)
16661666
return self._non_specialized_unary_op(value, "not", line)
16671667

16681668
def unary_minus(self, value: Value, line: int) -> Value:

0 commit comments

Comments
 (0)