Website Summary Files Commits Branches @commit @diff @stats
path: root / JSImpl / src / Lexer.h
diff options
context:
space:
mode:
Commit81297e1f7cae13d9620df902ac968046bc646b3a (patch)
Author
 martin dobrev <martindobrev0@gmail.com>
2018-10-14 12:58:09 +0300
Committer
 martin dobrev <martindobrev0@gmail.com>
2018-10-14 12:58:09 +0300
Files8667315b8a2b7b25a27edab46be9d903c74f086f /JSImpl/src/Lexer.h
IPL-81297e1f7cae13d9620df902ac968046bc646b3a.tar
IPL-81297e1f7cae13d9620df902ac968046bc646b3a.tar.gz
IPL-81297e1f7cae13d9620df902ac968046bc646b3a.zip
Parent4e00cd48d86cc10e5b9b8ef413d81c4b94399cfb (diff)
Fix parsing of number which start with '9'
1 files changed, 1 insertions, 1 deletions
-rw-r--r--JSImpl/src/Lexer.h2
diff --git a/JSImpl/src/Lexer.h b/JSImpl/src/Lexer.h
index db07f7d..fd3d244 100644
--- a/JSImpl/src/Lexer.h
+++ b/JSImpl/src/Lexer.h
@@ -107,7 +107,7 @@ struct Token
TokenType Type;
unsigned Line;
IPLString Lexeme;
- double Number = 0.0;
+ double Number;
};
IPLVector<Token> Tokenize(const char* code, const std::function<void()>& onError = {});