Commit aaf7bd8a by H.J. Lu Committed by H.J. Lu

Cast size and elements to long for %l

	* mangle.c (mangle_conv_op_name_for_type): Cast elements to
	unsigned long.
	(print_template_statistics): Cast size and elements to long.

From-SVN: r216151
parent daaf6209
2014-10-13 H.J. Lu <hongjiu.lu@intel.com>
* mangle.c (mangle_conv_op_name_for_type): Cast elements to
unsigned long.
(print_template_statistics): Cast size and elements to long.
2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
* cp-gimplify.c, cp-tree.h, decl.c, mangle.c, name-lookup.c,
......
......@@ -3744,7 +3744,8 @@ mangle_conv_op_name_for_type (const tree type)
char buffer[64];
/* Create a unique name corresponding to TYPE. */
sprintf (buffer, "operator %lu", conv_type_names->elements ());
sprintf (buffer, "operator %lu",
(unsigned long) conv_type_names->elements ());
identifier = get_identifier (buffer);
*slot = identifier;
......
......@@ -22324,12 +22324,12 @@ void
print_template_statistics (void)
{
fprintf (stderr, "decl_specializations: size %ld, %ld elements, "
"%f collisions\n", decl_specializations->size (),
decl_specializations->elements (),
"%f collisions\n", (long) decl_specializations->size (),
(long) decl_specializations->elements (),
decl_specializations->collisions ());
fprintf (stderr, "type_specializations: size %ld, %ld elements, "
"%f collisions\n", type_specializations->size (),
type_specializations->elements (),
"%f collisions\n", (long) type_specializations->size (),
(long) type_specializations->elements (),
type_specializations->collisions ());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment