Allow part(8) to make subpartitions above 4G

Change-Id: I3fd2c5de7cbb190b857eb34f16463f67a30118a3
This commit is contained in:
Antoine Leca 2016-07-14 14:09:14 +02:00 committed by David van Moolenbroek
parent 36dcc4a4a9
commit 7eb1c60ab5

View File

@ -1578,7 +1578,7 @@ ssize_t boot_readwrite(int rw)
{ {
int r = 0; 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; return -1;
switch (rw) { switch (rw) {