Oops, checking for the wrong expected return value

This commit is contained in:
Erica Fischer
2024-07-30 15:38:16 -07:00
parent 43e5b6147e
commit 6a6ec0c038
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2094,7 +2094,7 @@ long long write_tile(decompressor *geoms, std::atomic<long long> *geompos_in, ch
if (additional[A_TRUNCATE_ZOOMS]) {
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");
exit(EXIT_WRITE);
}