Commit 037b84f2 authored by Victor Zverovich's avatar Victor Zverovich

Fix warnings

parent e37ee419
...@@ -407,7 +407,7 @@ inline T mod(T x, int y) { ...@@ -407,7 +407,7 @@ inline T mod(T x, int y) {
} }
template <typename T, FMT_ENABLE_IF(std::is_floating_point<T>::value)> template <typename T, FMT_ENABLE_IF(std::is_floating_point<T>::value)>
inline T mod(T x, int y) { 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 // If T is an integral type, maps T to its unsigned counterpart, otherwise
......
// Formatting library for C++ - format string compilation // Formatting library for C++ - experimental format string compilation
// //
// Copyright (c) 2012 - present, Victor Zverovich and fmt contributors // Copyright (c) 2012 - present, Victor Zverovich and fmt contributors
// All rights reserved. // All rights reserved.
...@@ -722,8 +722,6 @@ template <typename... Args> struct wprepared_format { ...@@ -722,8 +722,6 @@ template <typename... Args> struct wprepared_format {
Args...>::type type; Args...>::type type;
}; };
#if FMT_USE_ALIAS_TEMPLATES
template <typename Char, typename Container = std::vector<format_part<Char>>> template <typename Char, typename Container = std::vector<format_part<Char>>>
using parts_container_t = typename parts_container<Char, Container>::type; using parts_container_t = typename parts_container<Char, Container>::type;
...@@ -740,8 +738,6 @@ template <typename... Args> ...@@ -740,8 +738,6 @@ template <typename... Args>
using wprepared_format_t = using wprepared_format_t =
basic_prepared_format_t<std::wstring, parts_container<wchar_t>, Args...>; basic_prepared_format_t<std::wstring, parts_container<wchar_t>, Args...>;
#endif
#if FMT_USE_CONSTEXPR #if FMT_USE_CONSTEXPR
template <typename... Args, typename Format> template <typename... Args, typename Format>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment