diff options
author | John Wiegley <johnw@newartisans.com> | 2012-02-17 15:17:52 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-02-17 15:17:52 -0600 |
commit | c3a9a7d2c584a7651426b3516f4e9991c8063e02 (patch) | |
tree | 6a7748588d90d3d9e0032903548b3411d7277dd6 /src/unistring.h | |
parent | c6b51a2635bdf7da803dd2fc8251d6c290f134a4 (diff) | |
download | fork-ledger-c3a9a7d2c584a7651426b3516f4e9991c8063e02.tar.gz fork-ledger-c3a9a7d2c584a7651426b3516f4e9991c8063e02.tar.bz2 fork-ledger-c3a9a7d2c584a7651426b3516f4e9991c8063e02.zip |
Fixed many Clang type conversion warnings with static_cast
Diffstat (limited to 'src/unistring.h')
-rw-r--r-- | src/unistring.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/unistring.h b/src/unistring.h index 577e0da4..4be36b0d 100644 --- a/src/unistring.h +++ b/src/unistring.h @@ -92,8 +92,9 @@ public: if (this_len) utf8::unchecked::utf32to8 - (utf32chars.begin() + begin, - utf32chars.begin() + begin + + (utf32chars.begin() + static_cast<std::string::difference_type>(begin), + utf32chars.begin() + static_cast<std::string::difference_type>(begin) + + static_cast<std::string::difference_type> (len ? (len > this_len ? this_len : len) : this_len), std::back_inserter(utf8result)); |