From: Robert Bradshaw Date: Wed, 29 Oct 2008 00:33:00 +0000 (-0700) Subject: Ticket #60, compiler crash on bad array X-Git-Tag: 0.9.9.2.beta~2^2~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b52aa7db58ee858d70be1f91730e4a86effc2abd;p=cython.git Ticket #60, compiler crash on bad array --- diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index c294d2c1..7d9dee5f 100644 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -1553,9 +1553,9 @@ class IndexNode(ExprNode): self.index.analyse_types(env, skip_children=skip_child_analysis) elif not skip_child_analysis: self.index.analyse_types(env) + self.original_index_type = self.index.type if self.base.type.is_pyobject: if self.index.type.is_int and not self.index.type.is_longlong: - self.original_index_type = self.index.type self.index = self.index.coerce_to(PyrexTypes.c_py_ssize_t_type, env).coerce_to_simple(env) else: self.index = self.index.coerce_to_pyobject(env)