Hi,

Dag Sverre Seljebotn wrote:
> 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
>>
>> Please, do not blame me for being too pedantic. I have to deal with
>> this because I need to wrap some MPI calls like the following:
> 
> No no, this is great help for me!; these things happen because of cases I
> didn't consider where the [] notation is used.

Plus, they give us valuable test cases that make sure this is the last time we
break these things by accident.

Stefan

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to