Don't add spurious * if type is pointer; the is_pointer flag is enough

svn path=/trunk/; revision=611
This commit is contained in:
Colin Walters 2008-09-16 19:44:30 +00:00
parent 0ab7337756
commit 450476b1a7

View File

@ -1086,8 +1086,7 @@ serialize_type (GIrModule *module,
if (node->tag < GI_TYPE_TAG_ARRAY)
{
g_string_append_printf (str, "%s%s",
basic[node->tag], node->is_pointer ? "*" : "");
g_string_append_printf (str, "%s", basic[node->tag]);
}
else if (node->tag == GI_TYPE_TAG_ARRAY)
{
@ -1117,7 +1116,7 @@ serialize_type (GIrModule *module,
name = node->interface;
}
g_string_append_printf (str, "%s%s", name, node->is_pointer ? "*" : "");
g_string_append_printf (str, "%s", name);
}
else if (node->tag == GI_TYPE_TAG_GLIST)
{