|
@@ -420,7 +420,7 @@ JSONValue *Parser::getValue( const char *str )
|
|
|
if( string.anzahlVon( '.' ) == 1 )
|
|
|
{
|
|
|
bool isNumber = 1;
|
|
|
- for( char *c = string.getText(); c; c++ )
|
|
|
+ for( char *c = string.getText(); *c; c++ )
|
|
|
isNumber &= ( *c >= '0' && *c <= '9' ) || *c == '.';
|
|
|
if( isNumber )
|
|
|
return new JSONNumber( string );
|