projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6129c3
)
Issue #8328: Silence Visual Studio warnings.
author
Stefan Krah
<stefan@bytereef.org>
Wed, 7 Apr 2010 10:20:34 +0000
(10:20 +0000)
committer
Stefan Krah
<stefan@bytereef.org>
Wed, 7 Apr 2010 10:20:34 +0000
(10:20 +0000)
Objects/longobject.c
patch
|
blob
|
history
diff --git
a/Objects/longobject.c
b/Objects/longobject.c
index cfd6eba134f9ac967640bac33b3fda9f0501c39d..e41d06ad6dde5b9d97fdf590f09b8913eced55e0 100644
(file)
--- 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);