diff options
Diffstat (limited to 'exfat/mkfs/vbr.c')
-rw-r--r-- | exfat/mkfs/vbr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/exfat/mkfs/vbr.c b/exfat/mkfs/vbr.c index 702aa6d14..a45cc9003 100644 --- a/exfat/mkfs/vbr.c +++ b/exfat/mkfs/vbr.c @@ -27,12 +27,12 @@ #include "rootdir.h" #include <string.h> -static off_t vbr_alignment(void) +static loff_t vbr_alignment(void) { return get_sector_size(); } -static off_t vbr_size(void) +static loff_t vbr_size(void) { return 12 * get_sector_size(); } @@ -43,7 +43,7 @@ static void init_sb(struct exfat_super_block* sb) uint32_t fat_sectors; clusters_max = get_volume_size() / get_cluster_size(); - fat_sectors = DIV_ROUND_UP((off_t) clusters_max * sizeof(cluster_t), + fat_sectors = DIV_ROUND_UP((loff_t) clusters_max * sizeof(cluster_t), get_sector_size()); memset(sb, 0, sizeof(struct exfat_super_block)); |