Merge branch '10.6' into 10.11

This commit is contained in:
Oleksandr Byelkin 2024-07-20 08:16:24 +02:00
commit 0fe39d368a
362 changed files with 7659 additions and 3805 deletions

View file

@ -1465,22 +1465,22 @@ static double my_strtod_int(const char *s00, char **se, int *error, char *buf, s
s00= s;
esign= 0;
if (++s < end)
switch (c= *s) {
switch (*s) {
case '-': esign= 1;
/* fall through */
case '+': c= *++s;
case '+': s++;
}
if (s < end && c >= '0' && c <= '9')
if (s < end && *s >= '0' && *s <= '9')
{
while (s < end && c == '0')
c= *++s;
if (s < end && c > '0' && c <= '9') {
L= c - '0';
while (s < end && *s == '0')
s++;
if (s < end && *s > '0' && *s <= '9') {
L= *s - '0';
s1= s;
while (++s < end && (c= *s) >= '0' && c <= '9')
while (++s < end && *s >= '0' && *s <= '9')
{
if (L < 19999)
L= 10*L + c - '0';
L= 10*L + *s - '0';
}
if (s - s1 > 8 || L > 19999)
/* Avoid confusion from exponents