Skip to content

Commit

Permalink
Clean-up sign-conversion warnings (4 of n)
Browse files Browse the repository at this point in the history
  • Loading branch information
0x8000-0000 committed Nov 30, 2019
1 parent 15b7809 commit fecb9d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -1232,7 +1232,7 @@ int snprintf_float(T value, int precision, float_specs specs,
buffer<char>& buf);

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>
FMT_CONSTEXPR void handle_int_type_spec(char spec, Handler&& handler) {
Expand Down Expand Up @@ -2615,11 +2615,11 @@ class format_string_checker {
FMT_CONSTEXPR void on_text(const Char*, const Char*) {}

FMT_CONSTEXPR void on_arg_id() {
arg_id_ = context_.next_arg_id();
arg_id_ = static_cast<unsigned>(context_.next_arg_id());
check_arg_id();
}
FMT_CONSTEXPR void on_arg_id(int id) {
arg_id_ = id;
arg_id_ = static_cast<unsigned>(id);
context_.check_arg_id(id);
check_arg_id();
}
Expand Down

0 comments on commit fecb9d4

Please sign in to comment.