4 Feb
2008
4 Feb
'08
9:09 p.m.
Robert Cimrman wrote:
Ondrej Certik wrote:
(the exact location of this file may vary on your system), search for the declaration of "npy_int32" and you will see how it depends on the "SIZEOF_LONG".
Well, we can well uses this, but printf( "______%d\n", sizeof( npy_int32 ) ); prints ______4
so I still do not know why swig complains.
Now I am on some track:
out of 'int32 nRow, int32 nCol, int32 nGr', nRow, nCol are of type numpy.int32 (which causes problems), nGr is a regular python long (no problem, automatically converted to my C int32 (=int)). it seems that swig cannot convert numpy.int32 to the C int32 (which is the same), while it _can_ convert numpy.int64 to C int32...
It is easy to fix in my code, but I would like to understand this.
r.