diff options
Diffstat (limited to 'gcc')
| -rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/cp/mangle.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 8c333fe..60c4cd7 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2003-06-17 Mark Mitchell <mark@codesourcery.com> + + * mangle.c (mangle_conv_op_name_for_type): Correct sprintf format + string. + 2003-06-17 Jason Merrill <jason@redhat.com> PR c++/10929 diff --git a/gcc/cp/mangle.c b/gcc/cp/mangle.c index 4c53662..63a8bd7 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); |
