1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-08 17:42:12 +03:00

stdio-common: Consistently use 'num_digits_len' in 'vfscanf'

Make the only place use 'num_digits_len' enumeration constant where 10
is referred literally for a digit index in i18n handling for decimal
integers.  No change in code produced.

Reviewed-by: Arjun Shankar <arjun@redhat.com>
This commit is contained in:
Maciej W. Rozycki
2025-05-29 22:11:38 +01:00
parent eaf88c1025
commit e6de31203e

View File

@@ -1737,7 +1737,7 @@ __vfscanf_internal (FILE *s, const char *format, va_list argptr,
#endif #endif
} }
if (n < 10) if (n < num_digits_len)
{ {
/* Found it. */ /* Found it. */
from_level = level; from_level = level;