[Pyrex] Bug in CoerceFromPyTypeNode in 0.9.5
Helmut Jarausch
jarausch at igpm.rwth-aachen.de
Mon Jan 29 10:12:07 UTC 2007
On 29 Jan, Greg Ewing wrote:
> Yes, the typecast is needed now, because I've made it use
> the C++ rules for enum compatibility, which don't allow
> turning an int into an enum implicitly.
Now Pyrex is stricter than C(++)
cdef char ISO_UTF_buffer[ISO_UTF_buflen]
.....
self.buffer= ISO_UTF_buffer
.....
if self.buffer != <char*> ISO_UTF_buffer :
=====================> ^^^^^^^
this is necessary, now, otherwise Pyrex gives
Invalid types for '!=' (char (*), char ([__pyx_e_2HE_ISO_UTF_buflen]))
Helmut.
--
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany
More information about the Pyrex
mailing list