mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-08 01:36:54 +08:00
Small bugfix to float parser
This commit is contained in:
parent
2d0b8e85b6
commit
599a21d377
@ -145,7 +145,7 @@ namespace chaiscript
|
||||
++input_pos;
|
||||
++col;
|
||||
}
|
||||
if (*input_pos == '.') {
|
||||
if ((input_pos != input_end) && (*input_pos == '.')) {
|
||||
++input_pos;
|
||||
++col;
|
||||
if ((input_pos != input_end) && (*input_pos >= '0') && (*input_pos <= '9')) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user