cython-devel
changeset 1282:471a5c710a28
Ticket #60, compiler crash on bad array
| author | Robert Bradshaw <robertwb@math.washington.edu> |
|---|---|
| date | Tue Oct 28 17:33:00 2008 -0700 (3 years ago) |
| parents | d57e5d68d231 |
| children | 9c77f9555dc4 |
| files | Cython/Compiler/ExprNodes.py |
line diff
1.1 --- a/Cython/Compiler/ExprNodes.py Tue Oct 28 17:10:34 2008 -0700
1.2 +++ b/Cython/Compiler/ExprNodes.py Tue Oct 28 17:33:00 2008 -0700
1.3 @@ -1553,9 +1553,9 @@
1.4 self.index.analyse_types(env, skip_children=skip_child_analysis)
1.5 elif not skip_child_analysis:
1.6 self.index.analyse_types(env)
1.7 + self.original_index_type = self.index.type
1.8 if self.base.type.is_pyobject:
1.9 if self.index.type.is_int and not self.index.type.is_longlong:
1.10 - self.original_index_type = self.index.type
1.11 self.index = self.index.coerce_to(PyrexTypes.c_py_ssize_t_type, env).coerce_to_simple(env)
1.12 else:
1.13 self.index = self.index.coerce_to_pyobject(env)
