On 12.10.2018 22:13, Jerry James wrote:
This is from Includes/cpython/longintrepr.pxd in Cython 0.28.4,
which
does not trigger the above error:
ctypedef struct PyLongObject:
digit* ob_digit
This is from the same file in Cython 0.29~rc2-1, which does trigger
the above error:
ctypedef class __builtin__.py_long [object PyLongObject]:
cdef digit* ob_digit
This was done in
https://github.com/cython/cython/commit/4bd2c9b85ac2d85fe40a56296dcc86f27...
Particularly interesting is the change in tests/run/longintrepr.pyx:
ret = _PyLong_New(index + 1)
- (<PyLongObject*>ret).ob_digit[index] = low
+ ret.ob_digit[index] = low
There is exactly one use of PyLongObject, on line 211:
cdef const digit* D = (<PyLongObject*>x).ob_digit
Would changing to:
cdef const digit* D = x.ob_digit
do?
--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok