From e6de31203e236fa346c2f56ce4e1f8fe82594b03 Mon Sep 17 00:00:00 2001 From: "Maciej W. Rozycki" Date: Thu, 29 May 2025 22:11:38 +0100 Subject: [PATCH] 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 --- stdio-common/vfscanf-internal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdio-common/vfscanf-internal.c b/stdio-common/vfscanf-internal.c index b965c7b915..86ae5019a6 100644 --- a/stdio-common/vfscanf-internal.c +++ b/stdio-common/vfscanf-internal.c @@ -1737,7 +1737,7 @@ __vfscanf_internal (FILE *s, const char *format, va_list argptr, #endif } - if (n < 10) + if (n < num_digits_len) { /* Found it. */ from_level = level;