From 2f7066d7ba462641e1c5b6bc8d5fc5ee850ca87f Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Thu, 6 May 2010 18:02:22 -0400 Subject: 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 --- giscanner/annotationparser.py | 4 ++-- 1 file 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', {}) -- cgit v1.2.1