Skip to content

Commit eb1b2e2

Browse files
committed
Fix sign
1 parent 66a64a3 commit eb1b2e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpath/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def __eq__(self, other):
2121
if not isinstance(other, int):
2222
return False
2323

24-
if other >= self.max_value or other >= -self.max_value:
24+
if other >= self.max_value or other <= -self.max_value:
2525
return False
2626

2727
return int(self) == (self.max_value + other) % self.max_value

0 commit comments

Comments
 (0)