changed: the parser is allowed to recognize values which
begin with a dot, e.g '.5' is treated as '0.5' git-svn-id: svn://ttmath.org/publicrep/ttmath/trunk@46 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
parent
d27cabec93
commit
93ba8ce17d
|
@ -2734,7 +2734,7 @@ private:
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
we're testing whether is there a comma operator
|
we're testing whether there's a comma operator
|
||||||
*/
|
*/
|
||||||
bool FromString_TestCommaOperator(const char * & source)
|
bool FromString_TestCommaOperator(const char * & source)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1553,7 +1553,10 @@ int character;
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if( character=='#' || character=='&' || CharToDigit(character, base)!=-1 )
|
if( character=='#' || character=='&' ||
|
||||||
|
character==TTMATH_COMMA_CHARACTER_1 ||
|
||||||
|
(character==TTMATH_COMMA_CHARACTER_2 && TTMATH_COMMA_CHARACTER_2 != 0) ||
|
||||||
|
CharToDigit(character, base)!=-1 )
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
warning:
|
warning:
|
||||||
|
|
Loading…
Reference in New Issue