Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Resolve non-external typedefs for array expressions

  • Loading branch information...
commit d146ac7ca2c1eee22a786f80ee865f94bbc4f8cd 1 parent 1719bdb
@markflorisson authored
Showing with 7 additions and 3 deletions.
  1. +6 −2 Cython/Compiler/Vector.py
  2. +1 −1  Cython/minivect
View
8 Cython/Compiler/Vector.py
@@ -34,8 +34,12 @@
class TypeMapper(minitypes.TypeMapper):
def map_type(self, type, wrap=False):
if type.is_typedef:
- return minitypes.TypeWrapper(type, self.context)
- elif type.is_memoryviewslice:
+ if type.typedef_is_external:
+ return minitypes.TypeWrapper(type, self.context)
+ else:
+ type = type.resolve()
+
+ if type.is_memoryviewslice:
dtype = self.map_type(type.dtype, wrap=wrap)
return minitypes.ArrayType(dtype, len(type.axes),
is_c_contig=type.is_c_contig,
2  Cython/minivect
@@ -1 +1 @@
-Subproject commit 1ceedc30af0cc45c90da5e792341cb91ca8a1d68
+Subproject commit 2bddcab356d4b572c4864b5b11f98b69e70e630f
Please sign in to comment.
Something went wrong with that request. Please try again.