mirror of
https://github.com/samba-team/samba.git
synced 2025-08-07 09:49:30 +03:00
r8397: merged an upstream fix for the expression bug tpot found yesterday
(This used to be commit 93712dd894
)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
61edb97bdf
commit
e5700ea560
@ -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
|
||||
|
Reference in New Issue
Block a user