mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56:14 +01:00
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:
parent
7db23628b0
commit
e8c772bdb6
4
ginfo.c
4
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user