summaryrefslogtreecommitdiffstats
path: root/Objects/longobject.c
diff options
context:
space:
mode:
authorStefan Krah <stefan@bytereef.org>2010-04-07 10:20:34 (GMT)
committerStefan Krah <stefan@bytereef.org>2010-04-07 10:20:34 (GMT)
commit639e18410eed06bd89795dab5a89ce421e007309 (patch)
tree65853ad03d2ed6ec45d0aa8b63ac0a041eed57de /Objects/longobject.c
parentc6129c355982b1fb4f2cc43a37fc853d784e7834 (diff)
downloadcpython-639e18410eed06bd89795dab5a89ce421e007309.zip
cpython-639e18410eed06bd89795dab5a89ce421e007309.tar.gz
cpython-639e18410eed06bd89795dab5a89ce421e007309.tar.bz2
Issue #8328: Silence Visual Studio warnings.
Diffstat (limited to 'Objects/longobject.c')
-rw-r--r--Objects/longobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c
index cfd6eba..e41d06a 100644
--- a/Objects/longobject.c
+++ b/Objects/longobject.c
@@ -1333,7 +1333,7 @@ PyLong_FromSize_t(size_t ival)
int ndigits = 0;
if (ival < PyLong_BASE)
- return PyLong_FromLong(ival);
+ return PyLong_FromLong((long)ival);
/* Count the number of Python digits. */
t = ival;
while (t) {
@@ -4053,7 +4053,7 @@ long_bit_length(PyLongObject *v)
Py_DECREF(result);
result = y;
- x = (PyLongObject *)PyLong_FromLong(msd_bits);
+ x = (PyLongObject *)PyLong_FromLong((long)msd_bits);
if (x == NULL)
goto error;
y = (PyLongObject *)long_add(result, x);