[Pyrex] Bug in CoerceFromPyTypeNode in 0.9.5
Greg Ewing
greg.ewing at canterbury.ac.nz
Sun Jan 28 23:58:31 UTC 2007
Peter Johnson wrote:
if self.type.is_enum:
> rhs = typecast(rhs, self.type, PyrexTypes.c_long_type)
>
> and the typecast code in PyrexTypes.py is:
>
> def typecast(to_type, from_type, expr_code):
I think I've just got the parameters in the wrong order in that call,
it should be
rhs = typecast(self.type, PyrexTypes.c_long_type, rhs)
Thanks,
--
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury, | Carpe post meridiem! |
Christchurch, New Zealand | (I'm not a morning person.) |
greg.ewing at canterbury.ac.nz +--------------------------------------+
More information about the Pyrex
mailing list