reverted last type casting change
authorStefan Behnel <scoder@users.berlios.de>
Fri, 13 Jun 2008 18:50:39 +0000 (20:50 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Fri, 13 Jun 2008 18:50:39 +0000 (20:50 +0200)
Cython/Compiler/ModuleNode.py

index 25be7e375dc27a82cced53a857d6001bb337783b..3802641137d502931bf0795d11104cf9308a8e8d 100644 (file)
@@ -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))