diff options
author | Johan Bilien <jobi@via.ecp.fr> | 2008-10-27 15:03:18 +0000 |
---|---|---|
committer | Johan Bilien <jobi@src.gnome.org> | 2008-10-27 15:03:18 +0000 |
commit | 98da4ca45e09945440ee42112e6b808ea0c89bfc (patch) | |
tree | 7692559d990e14663460ccbb2e502f8d3f626cca /girepository/ginvoke.c | |
parent | fa1fa9c5e7a02f3efa8a623acec9bba2a119469b (diff) | |
download | gobject-introspection-98da4ca45e09945440ee42112e6b808ea0c89bfc.tar.gz |
Bug 558068 – when invoking a method, offset the in arguments by one, not
2008-10-27 Johan Bilien <jobi@via.ecp.fr>
Bug 558068 – when invoking a method, offset the in arguments by one,
not the out
* tests/invoke/invoke.c, tests/invoke/testfns.c,
tests/invoke/testfns-1.0.gir: Add testing of method and constructor.
* girepository/ginvoke.c: do not offset the index of given out
arguments by one for methods, "this" is provided as in argument only.
svn path=/trunk/; revision=820
Diffstat (limited to 'girepository/ginvoke.c')
-rw-r--r-- | girepository/ginvoke.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/girepository/ginvoke.c b/girepository/ginvoke.c index 2626a956..204c5478 100644 --- a/girepository/ginvoke.c +++ b/girepository/ginvoke.c @@ -254,7 +254,7 @@ g_function_info_invoke (GIFunctionInfo *info, goto out; } - args[i+offset] = (gpointer)&out_args[out_pos+offset]; + args[i+offset] = (gpointer)&out_args[out_pos]; out_pos++; break; case GI_DIRECTION_INOUT: |