diff options
Diffstat (limited to 'giscanner/docwriter.py')
-rw-r--r-- | giscanner/docwriter.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/giscanner/docwriter.py b/giscanner/docwriter.py index ddd0e6ea..8a03aefe 100644 --- a/giscanner/docwriter.py +++ b/giscanner/docwriter.py @@ -371,8 +371,11 @@ class DocFormatterC(DocFormatter): return self.format_type(type_.element_type) + '*' elif type_.ctype is not None: return type_.ctype - else: + elif type_.target_fundamental: return type_.target_fundamental + else: + node = self._transformer.lookup_typenode(type_) + return getattr(node, 'ctype') def format_function_name(self, func): if isinstance(func, (ast.Function)): |