Issue #8328: Silence Visual Studio warnings.

This commit is contained in:
Stefan Krah 2010-04-07 10:20:34 +00:00
parent c6129c3559
commit 639e18410e
1 changed files with 2 additions and 2 deletions

View File

@ -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);