Bug 556541 – access union members through UnionBlob rather than

2008-10-16  Tommi Komulainen  <tommi.komulainen@iki.fi>

	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
This commit is contained in:
Tommi Komulainen 2008-10-16 17:07:00 +00:00 committed by Tommi Komulainen
parent 7db23628b0
commit e8c772bdb6

View File

@ -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);
}