diff --git a/libc/src/stdio/printf_core/parser.h b/libc/src/stdio/printf_core/parser.h index 684911a567569..1084cdc4349da 100644 --- a/libc/src/stdio/printf_core/parser.h +++ b/libc/src/stdio/printf_core/parser.h @@ -597,11 +597,11 @@ template class Parser { break; case (LengthModifier::w): case (LengthModifier::wf): - if (bw <= INT_WIDTH) { + if (bw <= cpp::numeric_limits::digits) { conv_size = type_desc_from_type(); - } else if (bw <= LONG_WIDTH) { + } else if (bw <= cpp::numeric_limits::digits) { conv_size = type_desc_from_type(); - } else if (bw <= LLONG_WIDTH) { + } else if (bw <= cpp::numeric_limits::digits) { conv_size = type_desc_from_type(); } else { conv_size = type_desc_from_type();