From: Stefan Behnel Date: Fri, 28 Jan 2011 18:04:49 +0000 (+0100) Subject: fix IndexNode.is_simple() for buffer access X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=edc1897347edf6abb375098d944c2d7b58257622;p=cython.git fix IndexNode.is_simple() for buffer access --- 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))