mirror of
https://github.com/mapbox/tippecanoe.git
synced 2025-04-08 19:44:15 +00:00
Detect a lack of digits in the exponent for a number
This commit is contained in:
parent
55692cb27c
commit
1a7b4189bf
@ -310,6 +310,10 @@ again:
|
||||
}
|
||||
|
||||
c = peek(f);
|
||||
if (c < '0' || c > '9') {
|
||||
*error = "Exponent without digits";
|
||||
return NULL;
|
||||
}
|
||||
while (c >= '0' && c <= '9') {
|
||||
string_append(&val, getc(f));
|
||||
c = peek(f);
|
||||
|
Loading…
x
Reference in New Issue
Block a user