aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2003-06-17 23:33:25 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2003-06-17 23:33:25 +0000
commitf2d90304d2e65f2263ce19037c485fa7d6c15d18 (patch)
tree06a519f3be520547319ec5d59c5102db987108eb
parent9da32fe151688a1790f3de95a6fd396d22a626dd (diff)
downloadgcc-f2d90304d2e65f2263ce19037c485fa7d6c15d18.zip
gcc-f2d90304d2e65f2263ce19037c485fa7d6c15d18.tar.gz
gcc-f2d90304d2e65f2263ce19037c485fa7d6c15d18.tar.bz2
mangle.c (mangle_conv_op_name_for_type): Correct sprintf format string.
* mangle.c (mangle_conv_op_name_for_type): Correct sprintf format string. From-SVN: r68124
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/mangle.c3
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);