cython-devel
changeset 906:def99eb4f83c
Fix ticket #36, casting non-simple expression.
| author | Robert Bradshaw <robertwb@math.washington.edu> |
|---|---|
| date | Sat Aug 02 22:37:19 2008 -0700 (4 years ago) |
| parents | 624d0463d407 |
| children | e6bad90a921e |
| files | Cython/Compiler/ExprNodes.py |
line diff
1.1 --- a/Cython/Compiler/ExprNodes.py Sat Aug 02 21:53:04 2008 -0700
1.2 +++ b/Cython/Compiler/ExprNodes.py Sat Aug 02 22:37:19 2008 -0700
1.3 @@ -2951,6 +2951,7 @@
1.4 self.operand = self.operand.coerce_to_pyobject(env)
1.5 else:
1.6 warning(self.pos, "No conversion from %s to %s, python object pointer used." % (self.operand.type, self.type))
1.7 + self.operand = self.operand.coerce_to_simple(env)
1.8 elif from_py and not to_py:
1.9 if self.type.from_py_function:
1.10 self.operand = self.operand.coerce_to(self.type, env)
