Require a digit ahead of the dot for a valid number for the SF0x output

This commit is contained in:
Lorenz Meier
2014-08-18 13:16:58 +02:00
parent 01f1c90c26
commit 16694051c9
+2 -1
View File
@@ -598,7 +598,8 @@ SF0X::collect()
memcpy(_linebuf, buf, (lend + 1) - (i + 1));
}
if (_linebuf[i] == '.') {
/* we need a digit before the dot and a dot for a valid number */
if (i > 0 && _linebuf[i] == '.') {
valid = true;
}
}