[Pyrex] [Cython] Type casting issues and strict aliasing

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Jun 13 03:28:43 CEST 2008


Stefan Behnel wrote:
> Hi,
> 
> regarding the second issue below, a simple cast to a (void*) works for me:
> 
>   __pyx_vtable_7r_jiba1_Norwegian.__pyx_base.describe =
>                              (void*)__pyx_f_7r_jiba1_9Norwegian_describe;

I suspect that won't work when compiling as C++, because
you can only implicitly cast *to* void * in C++, not the
other way.

I think to fix this properly you'll have to figure out
what the actual type of the LHS is and cast to that.

-- 
Greg



More information about the Pyrex mailing list