Re: [Cython] Type casting issues and strict aliasing
Greg Ewing <greg.ewing-F+z8Qja7x9Xokq/[email protected]> Fri, 13 Jun 2008 13:28:43 +1200
| Newsgroups | gmane.comp.python.cython.devel,gmane.comp.python.pyrex |
|---|---|
| Organization | University of Canterbury | Te Whare Wananga o Waitaha |
| Message-ID | <[email protected]> |
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