diff options
author | Owen W. Taylor <otaylor@fishsoup.net> | 2010-05-06 18:02:22 -0400 |
---|---|---|
committer | Owen W. Taylor <otaylor@fishsoup.net> | 2010-05-07 12:02:11 -0400 |
commit | 2f7066d7ba462641e1c5b6bc8d5fc5ee850ca87f (patch) | |
tree | 507d7c79410913fa44a90803f9ae42194499ca16 /giscanner | |
parent | 2c256ddfb4463a7a87b38450e66f764a034a4855 (diff) | |
download | gobject-introspection-2f7066d7ba462641e1c5b6bc8d5fc5ee850ca87f.tar.gz |
Use -1 not None for closure/destroy indices
Don't assign None to closure and destroy indices in case of
collision, they are supposed to be numeric.
https://bugzilla.gnome.org/show_bug.cgi?id=617978
Diffstat (limited to 'giscanner')
-rw-r--r-- | giscanner/annotationparser.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/giscanner/annotationparser.py b/giscanner/annotationparser.py index fa43378a..99da0bfe 100644 --- a/giscanner/annotationparser.py +++ b/giscanner/annotationparser.py @@ -550,12 +550,12 @@ class AnnotationApplier(object): def _fixup_param_destroy(self, parent, param): for p in parent.parameters: if p is not param and p.destroy_index == param.destroy_index: - p.destroy_index = None + p.destroy_index = -1 def _fixup_param_closure(self, parent, param): for p in parent.parameters: if p is not param and p.closure_index == param.closure_index: - p.closure_index = None + p.closure_index = -1 def _parse_param_ret_common(self, parent, node, tag): options = getattr(tag, 'options', {}) |