[Cython] cython-devel: array declaration problems with current trunk
Dag Sverre Seljebotn
dagss at student.matnat.uio.no
Tue Aug 5 18:56:24 CEST 2008
Lisandro Dalcin wrote:
> Dag, I still have problems with this (the 'sizeof(int[3])' part):
>
> cdef inline object newarray_int3(int n, int (**p)[3]):
> if n < 0: n = 0
> cdef int (*array)[3] # = NULL ## XXX
> cdef object ob = allocate(n*sizeof(int[3]), <void**>&array)
> ^
> ------------------------------------------------------------
>
> /u/dalcinl/Devel/Cython/mpi4py-dev/src/MPI/asarray.pxi:13:44: Expected: type
>
OK fix is in now.
--
Dag Sverre
More information about the Cython-dev
mailing list