mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-24 03:17:53 +00:00
Fix warnings
This commit is contained in:
parent
e37ee419c6
commit
037b84f214
@ -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
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Formatting library for C++ - format string compilation
|
||||
// Formatting library for C++ - experimental format string compilation
|
||||
//
|
||||
// Copyright (c) 2012 - present, Victor Zverovich and fmt contributors
|
||||
// All rights reserved.
|
||||
@ -722,8 +722,6 @@ template <typename... Args> struct wprepared_format {
|
||||
Args...>::type type;
|
||||
};
|
||||
|
||||
#if FMT_USE_ALIAS_TEMPLATES
|
||||
|
||||
template <typename Char, typename Container = std::vector<format_part<Char>>>
|
||||
using parts_container_t = typename parts_container<Char, Container>::type;
|
||||
|
||||
@ -740,8 +738,6 @@ template <typename... Args>
|
||||
using wprepared_format_t =
|
||||
basic_prepared_format_t<std::wstring, parts_container<wchar_t>, Args...>;
|
||||
|
||||
#endif
|
||||
|
||||
#if FMT_USE_CONSTEXPR
|
||||
|
||||
template <typename... Args, typename Format>
|
||||
|
Loading…
Reference in New Issue
Block a user