From edc1897347edf6abb375098d944c2d7b58257622 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 28 Jan 2011 19:04:49 +0100 Subject: [PATCH] fix IndexNode.is_simple() for buffer access --- Cython/Compiler/ExprNodes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index 5c4c0579..965c9b49 100755 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -2015,6 +2015,8 @@ class IndexNode(ExprNode): return self.base.is_ephemeral() def is_simple(self): + if self.is_buffer_access: + return False base = self.base return (base.is_simple() and self.index.is_simple() and base.type and (base.type.is_ptr or base.type.is_array)) -- 2.26.2