Commit 51b2ec16 authored by Robert Bradshaw's avatar Robert Bradshaw

Merge branch 'complex'

parents 89cdd5a8 5976d24e
......@@ -395,8 +395,8 @@ class CTypedefType(BaseType):
if base_type is self.typedef_base_type and namespace is self.typedef_namespace:
return self
else:
return CTypedefType(self.typedef_name, base_type, self.typedef_cname,
self.typedef_is_external, namespace)
return create_typedef_type(self.typedef_name, base_type, self.typedef_cname,
0, namespace)
def __repr__(self):
return "<CTypedefType %s>" % self.typedef_cname
......
......@@ -146,3 +146,11 @@ def test_value_type(x):
"""
cdef vector[double].value_type val = x
return val
def test_value_type_complex(x):
"""
>>> test_value_type_complex(2)
(2+0j)
"""
cdef vector[double complex].value_type val = x
return val
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