Commit 560f512c authored by Stefan Behnel's avatar Stefan Behnel

Fix const memoryviews of structs for 0.29.x branch. The master branch differs here.

parent ce32e1e5
...@@ -669,8 +669,8 @@ def get_type_information_cname(code, dtype, maxdepth=None): ...@@ -669,8 +669,8 @@ def get_type_information_cname(code, dtype, maxdepth=None):
structinfo_name = "NULL" structinfo_name = "NULL"
elif dtype.is_struct: elif dtype.is_struct:
struct_scope = dtype.scope struct_scope = dtype.scope
if dtype.is_cv_qualified: if dtype.is_const:
struct_scope = struct_scope.base_type_scope struct_scope = struct_scope.const_base_type_scope
# Must pre-call all used types in order not to recurse during utility code writing. # Must pre-call all used types in order not to recurse during utility code writing.
fields = struct_scope.var_entries fields = struct_scope.var_entries
assert len(fields) > 0 assert len(fields) > 0
......
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