Small bugfix to float parser

This commit is contained in:
Jonathan Turner
2009-07-13 13:48:06 +00:00
parent 2d0b8e85b6
commit 599a21d377

View File

@@ -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')) {