mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-06 02:15:41 +02:00
Oops, checking for the wrong expected return value
This commit is contained in:
@@ -2232,7 +2232,7 @@ std::pair<int, metadata> read_input(std::vector<source> &sources, char *fname, i
|
|||||||
|
|
||||||
estimated_complexity = geompos;
|
estimated_complexity = geompos;
|
||||||
fflush(geomfile);
|
fflush(geomfile);
|
||||||
if (pwrite(fileno(geomfile), &estimated_complexity, sizeof(estimated_complexity), 0) != 0) {
|
if (pwrite(fileno(geomfile), &estimated_complexity, sizeof(estimated_complexity), 0) != sizeof(estimated_complexity)) {
|
||||||
perror("pwrite estimated complexity");
|
perror("pwrite estimated complexity");
|
||||||
exit(EXIT_WRITE);
|
exit(EXIT_WRITE);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2094,7 +2094,7 @@ long long write_tile(decompressor *geoms, std::atomic<long long> *geompos_in, ch
|
|||||||
|
|
||||||
if (additional[A_TRUNCATE_ZOOMS]) {
|
if (additional[A_TRUNCATE_ZOOMS]) {
|
||||||
fflush(geomfile[j]->fp);
|
fflush(geomfile[j]->fp);
|
||||||
if (pwrite(fileno(geomfile[j]->fp), &estimated_complexity_out, sizeof(estimated_complexity_out), start_geompos[j]) != 0) {
|
if (pwrite(fileno(geomfile[j]->fp), &estimated_complexity_out, sizeof(estimated_complexity_out), start_geompos[j]) != sizeof(estimated_complexity_out)) {
|
||||||
perror("pwrite complexity");
|
perror("pwrite complexity");
|
||||||
exit(EXIT_WRITE);
|
exit(EXIT_WRITE);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user