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:
Tomasz Sowa 2007-07-22 14:15:44 +00:00
parent d27cabec93
commit 93ba8ce17d
2 changed files with 5 additions and 2 deletions

View File

@ -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)
{

View File

@ -1553,7 +1553,10 @@ int character;
return 2;
}
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: