Commit 7998f0af authored by scoder's avatar scoder Committed by GitHub

Merge pull request #1646 from c-f-h/fix_memview_crash

Fix a compiler crash when casting to a memoryview
parents 7400ccc4 42f4f139
......@@ -10155,7 +10155,9 @@ class CythonArrayNode(ExprNode):
return self.get_cython_array_type(env)
def get_cython_array_type(self, env):
return env.global_scope().context.cython_scope.viewscope.lookup("array").type
cython_scope = env.global_scope().context.cython_scope
cython_scope.load_cythonscope()
return cython_scope.viewscope.lookup("array").type
def generate_result_code(self, code):
from . import Buffer
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment