[Cython] cython-0.11.rc: Updated tar, test fails (but gets further)
Stefan Behnel
stefan_ml at behnel.de
Tue Mar 10 16:38:43 CET 2009
Lisandro Dalcin wrote:
>>> Now testing at least starts, but seems to have some errors:
>>
>> * warning: left shift count >= width of type
>>
>> I don't get these locally. The problem is in __Pyx_GetItemGeneric,
>> second
>> line: "1ULL << (sizeof(Py_ssize_t)*8)". Looks like that's not 64bit
>> clean.
>>
>
> PyInt_FromSsize_t() should be used here....
Could you come up with a fix? The other functions are affected, too:
inplace.cpp: In function PyObject* __Pyx_GetItemInt_Generic(PyObject*,
Py_ssize_t, int):
inplace.cpp:277: warning: left shift count >= width of type
inplace.cpp: In function int __Pyx_SetItemInt(PyObject*, Py_ssize_t,
PyObject*, int):
inplace.cpp:345: warning: left shift count >= width of type
dictintindex.cpp: In function PyObject* __Pyx_GetItemInt_Generic(PyObject*,
Py_ssize_t, int):
dictintindex.cpp:263: warning: left shift count >= width of type
Stefan
More information about the Cython-dev
mailing list