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