Fix warnings

This commit is contained in:
Victor Zverovich
2019-06-17 09:21:29 -07:00
parent fd2292f13a
commit 1c3197b8d8
3 changed files with 11 additions and 6 deletions

View File

@@ -766,7 +766,7 @@ template <typename Context> struct arg_mapper {
return val;
}
FMT_CONSTEXPR double map(float val) { return val; }
FMT_CONSTEXPR double map(float val) { return static_cast<double>(val); }
FMT_CONSTEXPR double map(double val) { return val; }
FMT_CONSTEXPR long double map(long double val) { return val; }