From: Antoine Leca Date: Thu, 14 Jul 2016 12:09:14 +0000 (+0200) Subject: Allow part(8) to make subpartitions above 4G X-Git-Url: http://zhaoyanbai.com/repos/named.html?a=commitdiff_plain;h=7eb1c60ab588f6efde07e196ec11a51a4361f193;p=minix.git Allow part(8) to make subpartitions above 4G Change-Id: I3fd2c5de7cbb190b857eb34f16463f67a30118a3 --- diff --git a/minix/commands/part/part.c b/minix/commands/part/part.c index b130b5237..13e6173fe 100644 --- a/minix/commands/part/part.c +++ b/minix/commands/part/part.c @@ -1578,7 +1578,7 @@ ssize_t boot_readwrite(int rw) { int r = 0; - if (lseek(device, offset * SECTOR_SIZE, SEEK_SET) < 0) + if (lseek(device, (off_t)offset * SECTOR_SIZE, SEEK_SET) < 0) return -1; switch (rw) {