Commit 4401a4b8 authored by Stefan Behnel's avatar Stefan Behnel

type casting simplification that seems to remove strict aliasing warnings in GCC 3.4 - 4.2

parent 9a61d296
......@@ -1913,7 +1913,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
for meth_entry in type.scope.cfunc_entries:
if meth_entry.func_cname:
code.putln(
"*(void(**)(void))&%s.%s = (void(*)(void))%s;" % (
"%s.%s = (void*)%s;" % (
type.vtable_cname,
meth_entry.cname,
meth_entry.func_cname))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment