diff --git a/python/common/org/python/types/Int.java b/python/common/org/python/types/Int.java index 9ace125d62..b45517e6ad 100644 --- a/python/common/org/python/types/Int.java +++ b/python/common/org/python/types/Int.java @@ -542,11 +542,7 @@ public org.python.Object __ror__(org.python.Object other) { __doc__ = "" ) public org.python.Object __neg__() { - if (this.value < 0) { - return new org.python.types.Int(this.value); - } else { - return new org.python.types.Int(-this.value); - } + return new org.python.types.Int(-this.value); } @org.python.Method(