mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-09-02 23:17:26 +00:00
Fix SimpleLexer not recognizing negative numbers
This commit is contained in:
@@ -120,7 +120,7 @@ SimpleParserValue SimpleLexer::GetNextToken()
|
||||
if (m_config.m_read_strings && c == '\"')
|
||||
return SimpleParserValue::String(pos, new std::string(ReadString()));
|
||||
|
||||
if (m_config.m_read_numbers && (isdigit(c) || c == '.' && isdigit(PeekChar())))
|
||||
if (m_config.m_read_numbers && (isdigit(c) || (c == '-' || c == '.') && isdigit(PeekChar())))
|
||||
{
|
||||
bool isFloatingPointValue;
|
||||
double doubleValue;
|
||||
|
Reference in New Issue
Block a user