We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 841327d commit 6e8a751Copy full SHA for 6e8a751
libc/src/stdio/printf_core/parser.h
@@ -597,11 +597,11 @@ template <typename ArgProvider> class Parser {
597
break;
598
case (LengthModifier::w):
599
case (LengthModifier::wf):
600
- if (bw <= INT_WIDTH) {
+ if (bw <= cpp::numeric_limits<unsigned int>::digits) {
601
conv_size = type_desc_from_type<int>();
602
- } else if (bw <= LONG_WIDTH) {
+ } else if (bw <= cpp::numeric_limits<unsigned long>::digits) {
603
conv_size = type_desc_from_type<long>();
604
- } else if (bw <= LLONG_WIDTH) {
+ } else if (bw <= cpp::numeric_limits<unsigned long long>::digits) {
605
conv_size = type_desc_from_type<long long>();
606
} else {
607
conv_size = type_desc_from_type<intmax_t>();
0 commit comments