mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-05 18:05:42 +02:00
Fix warning
This commit is contained in:
@@ -998,7 +998,7 @@ void *run_start_parsing(void *v) {
|
|||||||
perror("stat read temp");
|
perror("stat read temp");
|
||||||
}
|
}
|
||||||
if (a->len != st.st_size) {
|
if (a->len != st.st_size) {
|
||||||
fprintf(stderr, "wrong number of bytes in teomporary: %lld vs %lld\n", a->len, st.st_size);
|
fprintf(stderr, "wrong number of bytes in temporary: %lld vs %lld\n", a->len, (long long) st.st_size);
|
||||||
}
|
}
|
||||||
a->len = st.st_size;
|
a->len = st.st_size;
|
||||||
|
|
||||||
@@ -1246,7 +1246,7 @@ int read_json(int argc, char **argv, char *fname, const char *layername, int max
|
|||||||
int n;
|
int n;
|
||||||
|
|
||||||
while ((n = fread(buf, sizeof(char), READ_BUF, fp)) > 0) {
|
while ((n = fread(buf, sizeof(char), READ_BUF, fp)) > 0) {
|
||||||
fwrite(buf, sizeof(char), n, readfp);
|
fwrite_check(buf, sizeof(char), n, readfp, reading);
|
||||||
ahead += n;
|
ahead += n;
|
||||||
|
|
||||||
if (buf[n - 1] == '\n' && ahead > PARSE_MIN && is_parsing == 0) {
|
if (buf[n - 1] == '\n' && ahead > PARSE_MIN && is_parsing == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user