Skip to content

Commit 6e8a751

Browse files
authored
[libc] Clean up remaining use of *_WIDTH macros in printf (#102679)
The previous change missed the second spot doing the same thing. Bug: https://issues.fuchsia.dev/358196552
1 parent 841327d commit 6e8a751

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libc/src/stdio/printf_core/parser.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -597,11 +597,11 @@ template <typename ArgProvider> class Parser {
597597
break;
598598
case (LengthModifier::w):
599599
case (LengthModifier::wf):
600-
if (bw <= INT_WIDTH) {
600+
if (bw <= cpp::numeric_limits<unsigned int>::digits) {
601601
conv_size = type_desc_from_type<int>();
602-
} else if (bw <= LONG_WIDTH) {
602+
} else if (bw <= cpp::numeric_limits<unsigned long>::digits) {
603603
conv_size = type_desc_from_type<long>();
604-
} else if (bw <= LLONG_WIDTH) {
604+
} else if (bw <= cpp::numeric_limits<unsigned long long>::digits) {
605605
conv_size = type_desc_from_type<long long>();
606606
} else {
607607
conv_size = type_desc_from_type<intmax_t>();

0 commit comments

Comments
 (0)