diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 8c333fe8b45..60c4cd7c9d4 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2003-06-17 Mark Mitchell + + * mangle.c (mangle_conv_op_name_for_type): Correct sprintf format + string. + 2003-06-17 Jason Merrill PR c++/10929 diff --git a/gcc/cp/mangle.c b/gcc/cp/mangle.c index 4c536625199..63a8bd731b2 100644 --- a/gcc/cp/mangle.c +++ b/gcc/cp/mangle.c @@ -2628,7 +2628,8 @@ mangle_conv_op_name_for_type (const tree type) return TREE_VALUE ((tree) *slot); /* Create a unique name corresponding to TYPE. */ - sprintf (buffer, "operator %d\n", htab_elements (conv_type_names)); + sprintf (buffer, "operator %lu\n", + (unsigned long) htab_elements (conv_type_names)); identifier = get_identifier (buffer); *slot = build_tree_list (type, identifier);