[vala] codegen: Fix gcc warning for methods implementing generic interface
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] codegen: Fix gcc warning for methods implementing generic interface
- Date: Sat, 16 Oct 2010 11:50:16 +0000 (UTC)
commit 825677e63133629967a3b5aadff3b21e3c593630
Author: Frederik Zipp <fzipp gmx de>
Date: Wed Aug 4 21:31:43 2010 +0200
codegen: Fix gcc warning for methods implementing generic interface
Fixes bug 626056.
codegen/valagtypemodule.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valagtypemodule.vala b/codegen/valagtypemodule.vala
index e026bbf..e5d0bc4 100644
--- a/codegen/valagtypemodule.vala
+++ b/codegen/valagtypemodule.vala
@@ -1348,10 +1348,10 @@ public class Vala.GTypeModule : GErrorModule {
CCodeExpression cfunc;
if (m.is_abstract || m.is_virtual) {
cfunc = new CCodeIdentifier (m.get_cname ());
- cfunc = cast_method_pointer (m, cfunc, iface);
} else {
cfunc = new CCodeIdentifier (m.get_real_cname ());
}
+ cfunc = cast_method_pointer (m.base_interface_method, cfunc, iface);
init_block.add_statement (new CCodeExpressionStatement (new CCodeAssignment (new CCodeMemberAccess.pointer (ciface, m.base_interface_method.vfunc_name), cfunc)));
if (m.coroutine) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]