From e8c772bdb64f3bef1ed4afe9013ffac285c71fa8 Mon Sep 17 00:00:00 2001 From: Tommi Komulainen Date: Thu, 16 Oct 2008 17:07:00 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20556541=20=E2=80=93=20access=20union=20mem?= =?UTF-8?q?bers=20through=20UnionBlob=20rather=20than?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2008-10-16 Tommi Komulainen Bug 556541 – access union members through UnionBlob rather than StructBlob * girepository/ginfo.c (g_union_info_find_method): access union members through UnionBlob rather than StructBlob svn path=/trunk/; revision=729 --- ginfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ginfo.c b/ginfo.c index aa03bc30b..86e2ed687 100644 --- a/ginfo.c +++ b/ginfo.c @@ -1846,11 +1846,11 @@ g_union_info_find_method (GIUnionInfo *info, gint offset; GIBaseInfo *base = (GIBaseInfo *)info; Header *header = (Header *)base->typelib->data; - StructBlob *blob = (UnionBlob *)&base->typelib->data[base->offset]; + UnionBlob *blob = (UnionBlob *)&base->typelib->data[base->offset]; offset = base->offset + header->union_blob_size + blob->n_fields * header->field_blob_size; - return find_method (base, offset, blob->n_methods, name); + return find_method (base, offset, blob->n_functions, name); }