diff options
Diffstat (limited to 'Objects/intobject.c')
-rw-r--r-- | Objects/intobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/intobject.c b/Objects/intobject.c index b0ed82a..282da20 100644 --- a/Objects/intobject.c +++ b/Objects/intobject.c @@ -645,7 +645,7 @@ int_lshift(PyIntObject *v, PyIntObject *w) if (b >= LONG_BIT) { return PyInt_FromLong(0L); } - a = (unsigned long)a << b; + a = (long)((unsigned long)a << b); return PyInt_FromLong(a); } |