mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-02 08:25:40 +02:00
Detect a lack of digits in the exponent for a number
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user