Refactor normalize and clean up

This commit is contained in:
Victor Zverovich
2019-09-07 17:07:53 -07:00
parent 6649b8e0ca
commit ac71d853be
3 changed files with 31 additions and 30 deletions

View File

@@ -245,7 +245,7 @@ struct int128_t {};
struct uint128_t {};
#endif
// Casts nonnegative integer to unsigned.
// Casts a nonnegative integer to unsigned.
template <typename Int>
FMT_CONSTEXPR typename std::make_unsigned<Int>::type to_unsigned(Int value) {
FMT_ASSERT(value >= 0, "negative value");