diff options
Diffstat (limited to 'ftl_format.c')
-rw-r--r-- | ftl_format.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ftl_format.c b/ftl_format.c index bd4203b..0ce601b 100644 --- a/ftl_format.c +++ b/ftl_format.c @@ -240,7 +240,7 @@ static int format_partition(int fd, int quiet, int interrogate, /* Distribute transfer units over the entire region */ step = (spare) ? (FROM_LE16(hdr.NumEraseUnits)/spare) : (FROM_LE16(hdr.NumEraseUnits)+1); for (i = 0; i < FROM_LE16(hdr.NumEraseUnits); i++) { - u_int ofs = (i + FROM_LE16(hdr.FirstPhysicalEUN)) << hdr.EraseUnitSize; + off_t ofs = (off_t) (i + FROM_LE16(hdr.FirstPhysicalEUN)) << hdr.EraseUnitSize; if (lseek(fd, ofs, SEEK_SET) == -1) { perror("seek failed"); break; |