Commit b3fd0005 authored by Victor Zverovich's avatar Victor Zverovich

Suppress a bogus -Wdouble-promotion warning

parent 7b478f9d
...@@ -1173,7 +1173,7 @@ int snprintf_float(T value, int precision, float_specs specs, ...@@ -1173,7 +1173,7 @@ int snprintf_float(T value, int precision, float_specs specs,
buffer<char>& buf); buffer<char>& buf);
template <typename T> T promote_float(T value) { return value; } template <typename T> T promote_float(T value) { return value; }
inline double promote_float(float value) { return value; } inline double promote_float(float value) { return static_cast<double>(value); }
template <typename Handler> template <typename Handler>
FMT_CONSTEXPR void handle_int_type_spec(char spec, Handler&& handler) { FMT_CONSTEXPR void handle_int_type_spec(char spec, Handler&& handler) {
......
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