Fix warnings

This commit is contained in:
Victor Zverovich
2019-06-24 16:46:48 -07:00
parent e37ee419c6
commit 037b84f214
2 changed files with 2 additions and 6 deletions
+1 -1
View File
@@ -407,7 +407,7 @@ inline T mod(T x, int y) {
}
template <typename T, FMT_ENABLE_IF(std::is_floating_point<T>::value)>
inline T mod(T x, int y) {
return std::fmod(x, y);
return std::fmod(x, static_cast<T>(y));
}
// If T is an integral type, maps T to its unsigned counterpart, otherwise