From c3a9a7d2c584a7651426b3516f4e9991c8063e02 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 17 Feb 2012 15:17:52 -0600 Subject: Fixed many Clang type conversion warnings with static_cast --- src/filters.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/filters.cc') diff --git a/src/filters.cc b/src/filters.cc index 32f42cf4..331073eb 100644 --- a/src/filters.cc +++ b/src/filters.cc @@ -171,7 +171,7 @@ namespace { const char * b = str.c_str(); for (const char * p = b; *p; p++) { if (*p == ch) { - strings.push_back(string(b, p - b)); + strings.push_back(string(b, static_cast(p - b))); b = p + 1; } } -- cgit v1.2.3