add explicit static_cast to make Microsoft's compiler happier.
authorRoker <roker@pep-project.org>
Mon, 11 Jun 2018 22:07:50 +0200
changeset 5444d8c8c338918
parent 543 0d96e14247fc
child 545 f504c046baa7
add explicit static_cast to make Microsoft's compiler happier.
server/nfc.cc
     1.1 --- a/server/nfc.cc	Thu Jun 07 13:54:10 2018 +0200
     1.2 +++ b/server/nfc.cc	Mon Jun 11 22:07:50 2018 +0200
     1.3 @@ -335,7 +335,7 @@
     1.4  std::u32string fromUtf8_decompose(const std::string& s)
     1.5  {
     1.6  	std::u32string u32s;
     1.7 -	u32s.reserve(s.size()*1.25);
     1.8 +	u32s.reserve( static_cast<std::size_t>(s.size()*1.25) );
     1.9  	const char* begin = s.c_str();
    1.10  	const char* end   = s.c_str() + s.size();
    1.11  	for(; begin<end; ++begin)