diff options
Diffstat (limited to 'Objects/intobject.c')
-rw-r--r-- | Objects/intobject.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Objects/intobject.c b/Objects/intobject.c index ba3dde1..a5dc134 100644 --- a/Objects/intobject.c +++ b/Objects/intobject.c @@ -721,10 +721,7 @@ int_rshift(v, w) a = 0; } else { - if (a < 0) - a = ~( ~(unsigned long)a >> b ); - else - a = (unsigned long)a >> b; + a = Py_ARITHMETIC_RIGHT_SHIFT(long, a, b); } return PyInt_FromLong(a); } |