don't generate meaningless lvalue typecast
Modified: trunk/reactos/tools/widl/server.c
_____
Modified: trunk/reactos/tools/widl/server.c
--- trunk/reactos/tools/widl/server.c 2005-07-28 23:19:22 UTC (rev
16847)
+++ trunk/reactos/tools/widl/server.c 2005-07-28 23:22:47 UTC (rev
16848)
@@ -892,9 +892,9 @@
}
else if (var->ptr_level == 1)
{
- print_server("(");
+ fprintf(server, "%s = (", var->name);
write_type(server, var->type, NULL, var->tname);
- fprintf(server, " __RPC_FAR *)%s = 0;\n", var->name);
+ print_server(" __RPC_FAR *)0;\n");
}
else if (var->ptr_level > 1)
{
Show replies by date