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