Bug 556541 – access union members through UnionBlob rather than
authorTommi Komulainen <tommi.komulainen@iki.fi>
Thu, 16 Oct 2008 17:07:00 +0000 (17:07 +0000)
committerTommi Komulainen <tko@src.gnome.org>
Thu, 16 Oct 2008 17:07:00 +0000 (17:07 +0000)
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

ChangeLog
girepository/ginfo.c

index ada67c4..896a014 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+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
+
 2008-10-15  Colin Walters  <walters@verbum.org>
 
        Bug 556331 - clean up includes handling
index aa03bc3..86e2ed6 100644 (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);
 }