Add support for built-in __int128 when available

This commit is contained in:
Deniz Evrenci authored and Victor Zverovich committed 2019-09-04 07:05:08 -07:00
1 parent 16e3c48bb0
commit 6de0454b42
7 files changed
+157 -11

No files matched your search

+1 -1
View File
@@ -158,7 +158,7 @@ template <typename Char> class printf_width_handler {
template <typename T, FMT_ENABLE_IF(std::is_integral<T>::value)>
unsigned operator()(T value) {
auto width = static_cast<uint32_or_64_t<T>>(value);
auto width = static_cast<uint32_or_64_or_128_t<T>>(value);
if (internal::is_negative(value)) {
specs_.align = align::left;
width = 0 - width;