refactor: add explicit type conversion

This commit is contained in:
ToruNiina
2019-06-21 00:25:21 +09:00
parent 3b71f80652
commit ecf55f86d6
4 changed files with 15 additions and 14 deletions

View File

@@ -652,7 +652,7 @@ operator<<(std::basic_ostream<charT, traits>& os, const basic_value<C, M, V>& v)
{
// get status of std::setw().
const auto w = static_cast<std::size_t>(os.width());
const int fprec = os.precision();
const int fprec = static_cast<int>(os.precision());
os.width(0);
if(!v.comments().empty())