mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
[VFuncBlob] Unknown struct offset should be 0xFFFF
Documentation says about g_vfunc_get_offset(): "Obtain the offset of the function pointer in the class struct. The value 0xFFFF indicates that the struct offset is unknown." But g-ir-compiler did set the value to 0 when the offset is unknown. This patch fixes it. https://bugzilla.gnome.org/show_bug.cgi?id=628270
This commit is contained in:
parent
bc6a8d2f23
commit
8548baf3b9
@ -2418,7 +2418,7 @@ start_vfunc (GMarkupParseContext *context,
|
||||
if (offset)
|
||||
vfunc->offset = atoi (offset);
|
||||
else
|
||||
vfunc->offset = 0;
|
||||
vfunc->offset = 0xFFFF;
|
||||
|
||||
vfunc->invoker = g_strdup (invoker);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user