1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

r8397: merged an upstream fix for the expression bug tpot found yesterday

(This used to be commit 93712dd894b4ddaa2281034c754c0fa15f5ec34c)
This commit is contained in:
Andrew Tridgell 2005-07-12 23:49:08 +00:00 committed by Gerald (Jerry) Carter
parent 61edb97bdf
commit e5700ea560

View File

@ -663,11 +663,11 @@ static int getLexicalToken(Ejs *ep, int state)
break;
}
#if BLD_FEATURE_FLOATING_POINT
if (c == '.' || tolower(c) == 'e' || c == '+' || c == '-') {
if (c == '.' || tolower(c) == 'e' || tolower(c) == 'f') {
type = MPR_TYPE_FLOAT;
}
} while (isdigit(c) || c == '.' || tolower(c) == 'e' ||
c == '+' || c == '-');
} while (isdigit(c) || c == '.' || tolower(c) == 'e' || tolower(c) == 'f' ||
((type == MPR_TYPE_FLOAT) && (c == '+' || c == '-')));
#else
} while (isdigit(c));
#endif