Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 639e184

Browse files
committed
Issue #8328: Silence Visual Studio warnings.
1 parent c6129c3 commit 639e184

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Objects/longobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1333,7 +1333,7 @@ PyLong_FromSize_t(size_t ival)
13331333
int ndigits = 0;
13341334

13351335
if (ival < PyLong_BASE)
1336-
return PyLong_FromLong(ival);
1336+
return PyLong_FromLong((long)ival);
13371337
/* Count the number of Python digits. */
13381338
t = ival;
13391339
while (t) {
@@ -4053,7 +4053,7 @@ long_bit_length(PyLongObject *v)
40534053
Py_DECREF(result);
40544054
result = y;
40554055

4056-
x = (PyLongObject *)PyLong_FromLong(msd_bits);
4056+
x = (PyLongObject *)PyLong_FromLong((long)msd_bits);
40574057
if (x == NULL)
40584058
goto error;
40594059
y = (PyLongObject *)long_add(result, x);

0 commit comments

Comments
 (0)