Skip to content

Commit

Permalink
Fix handling of byte
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Dec 19, 2021
1 parent 2d44577 commit eaddd1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -1425,7 +1425,7 @@ template <typename Context> struct arg_mapper {
return map(static_cast<typename std::underlying_type<T>::type>(val));
}

FMT_CONSTEXPR FMT_INLINE auto map(detail::byte val) -> unsigned char {
FMT_CONSTEXPR FMT_INLINE auto map(detail::byte val) -> unsigned {
return map(static_cast<unsigned char>(val));
}

Expand Down

0 comments on commit eaddd1e

Please sign in to comment.