Small bugfix to float parser
This commit is contained in:
@@ -145,7 +145,7 @@ namespace chaiscript
|
|||||||
++input_pos;
|
++input_pos;
|
||||||
++col;
|
++col;
|
||||||
}
|
}
|
||||||
if (*input_pos == '.') {
|
if ((input_pos != input_end) && (*input_pos == '.')) {
|
||||||
++input_pos;
|
++input_pos;
|
||||||
++col;
|
++col;
|
||||||
if ((input_pos != input_end) && (*input_pos >= '0') && (*input_pos <= '9')) {
|
if ((input_pos != input_end) && (*input_pos >= '0') && (*input_pos <= '9')) {
|
||||||
|
Reference in New Issue
Block a user