/* read the last 4 bytes - this is the uncompressed size */ rv = lseek(fd, (off_t)(-8), SEEK_END); if (rv != -1) { unsigned char buf[8]; uint32_t usize; rv = read(fd, (char *)buf, sizeof(buf)); if (rv == -1) maybe_warn("read of uncompressed size"); else if (rv != sizeof(buf)) maybe_warnx("read of uncompressed size"); else { usize = buf[4] | buf[5] << 8 | buf[6] << 16 | buf[7] << 24; in = (off_t)usize; #ifndef SMALL crc = buf[0] | buf[1] << 8 | buf[2] << 16 | buf[3] << 24; /// <- here #endif sysupgrade: I: Extracting games into / /public/src.git/usr.bin/gzip/gzip.c:2126:33: runtime error: left shift of 251 by 24 places cannot be represented in type 'int' 100% |*****************************************************************************************| 44500 KiB 5.48 MiB/s 00:00 ETA sysupgrade: I: Extracting man into / /public/src.git/usr.bin/gzip/gzip.c:2126:33: runtime error: left shift of 157 by 24 places cannot be represented in type 'int' 100% |*****************************************************************************************| 50610 KiB 1.48 MiB/s 00:00 ETA sysupgrade: I: Extracting misc into / /public/src.git/usr.bin/gzip/gzip.c:2126:33: runtime error: left shift of 178 by 24 places cannot be represented in type 'int' 100% |*****************************************************************************************| 11170 KiB 2.14 MiB/s 00:00 ETA sysupgrade: I: Extracting tests into / /public/src.git/usr.bin/gzip/gzip.c:2126:33: runtime error: left shift of 153 by 24 places cannot be represented in type 'int' 100% |*****************************************************************************************| 37490 KiB 1.57 MiB/s 00:00 ETA sysupgrade: I: Extracting text into / /public/src.git/usr.bin/gzip/gzip.c:2126:33: runtime error: left shift of 229 by 24 places cannot be represented in type 'int' 100% |*****************************************************************************************| 6260 KiB 3.44 MiB/s 00:00 ETA sysupgrade: I: Extracting xbase into /