From 9e567528137fed1251184fe4935028e2299617ea Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 13 Jun 2008 20:50:39 +0200 Subject: [PATCH] reverted last type casting change --- Cython/Compiler/ModuleNode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 25be7e37..38026411 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -1914,7 +1914,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): for meth_entry in type.scope.cfunc_entries: if meth_entry.func_cname: code.putln( - "%s.%s = (void*)%s;" % ( + "*(void(**)(void))&%s.%s = (void(*)(void))%s;" % ( type.vtable_cname, meth_entry.cname, meth_entry.func_cname)) -- 2.26.2