1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-25 17:57:17 +00:00

Numbers require at least 1 significant digit.

Address issue #96
This commit is contained in:
Calvin Rose 2019-05-14 08:44:18 -04:00
parent 232ea22dc5
commit 805b3bbb88

View File

@ -291,8 +291,9 @@ int janet_scan_number(
if (*str == '.') { if (*str == '.') {
if (seenpoint) goto error; if (seenpoint) goto error;
seenpoint = 1; seenpoint = 1;
} } else {
seenadigit = 1; seenadigit = 1;
}
str++; str++;
} }