From 9d4e888ef57ef70acb22830c5bfb5e917208113e Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 4 Mar 2009 04:31:34 -0400 Subject: Cured several harmless compiler warnings --- src/format.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/format.cc') diff --git a/src/format.cc b/src/format.cc index 4a48808a..79f95375 100644 --- a/src/format.cc +++ b/src/format.cc @@ -360,7 +360,8 @@ void format_t::format(std::ostream& out_str, scope_t& scope) result = truncate(temp, elem->max_width); } else { result = temp.extract(); - for (int i = 0; i < (int)elem->min_width - (int)temp.length(); i++) + for (int i = 0; i < (static_cast(elem->min_width) - + static_cast(temp.length())); i++) result += " "; } out_str << result; -- cgit v1.2.3