+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,
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;
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 ());
}