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/item.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/item.cc') diff --git a/src/item.cc b/src/item.cc index 026a3790..056aa04c 100644 --- a/src/item.cc +++ b/src/item.cc @@ -145,7 +145,7 @@ void item_t::parse_tags(const char * p, (std::isdigit(*(b + 1)) || *(b + 1) == '=')) { if (const char * e = std::strchr(p, ']')) { char buf[256]; - std::strncpy(buf, b + 1, e - b - 1); + std::strncpy(buf, b + 1, static_cast(e - b - 1)); buf[e - b - 1] = '\0'; if (char * pp = std::strchr(buf, '=')) { -- cgit v1.2.3