[Bug #19087] Disallow successive underscores in Complex string

This commit is contained in:
Nobuyoshi Nakada 2022-10-28 19:28:17 +09:00
parent 914cf26d6e
commit c0dc717c45
Notes: git 2022-12-01 16:36:04 +00:00
2 changed files with 25 additions and 3 deletions

View file

@ -1751,9 +1751,9 @@ read_digits(const char **s, int strict,
while (isdecimal(**s) || **s == '_') {
if (**s == '_') {
if (strict) {
if (us)
return 0;
if (us) {
if (strict) return 0;
break;
}
us = 1;
}