From b52aa7db58ee858d70be1f91730e4a86effc2abd Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Tue, 28 Oct 2008 17:33:00 -0700 Subject: [PATCH] Ticket #60, compiler crash on bad array --- Cython/Compiler/ExprNodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.26.2