summaryrefslogtreecommitdiffstats
path: root/Objects/intobject.c
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-07-19 21:49:38 (GMT)
committerFred Drake <fdrake@acm.org>2001-07-19 21:49:38 (GMT)
commit1bc8fab0e770071c8476a92fa0da5c1daa3ad4a1 (patch)
tree425b3fa3df22e4cbb7884c00b498f1395e25bea9 /Objects/intobject.c
parentdff3a37afdf36263d9d10daf35d8400bda0dbbb1 (diff)
downloadcpython-1bc8fab0e770071c8476a92fa0da5c1daa3ad4a1.zip
cpython-1bc8fab0e770071c8476a92fa0da5c1daa3ad4a1.tar.gz
cpython-1bc8fab0e770071c8476a92fa0da5c1daa3ad4a1.tar.bz2
Kill more warnings from the SGI compiler.
Part of SF patch #434992.
Diffstat (limited to 'Objects/intobject.c')
-rw-r--r--Objects/intobject.c2
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);
}