summaryrefslogtreecommitdiffstats
path: root/src/exfatp.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2018-09-22 09:15:37 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2018-09-22 09:15:37 +0200
commit9d8b1382c951b82a54c2de94348450447f59ee09 (patch)
tree167e20153c4fa910618357ee6a55ba30e95d97ee /src/exfatp.c
parentd8eb31055c362dcc1d2ec6a0b0427972508c5a32 (diff)
exfat: fix to use 64 bits for some variables
Diffstat (limited to 'src/exfatp.c')
-rw-r--r--src/exfatp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/exfatp.c b/src/exfatp.c
index e5668f9..00374ac 100644
--- a/src/exfatp.c
+++ b/src/exfatp.c
@@ -67,7 +67,7 @@ unsigned int exfat_remove_used_space(disk_t *disk, const partition_t *partition,
unsigned char *buffer;
unsigned int i;
unsigned int cluster_bitmap;
- const uint64_t start_exfat1=le32(exfat_header->fat_blocknr) << exfat_header->blocksize_bits;
+ const uint64_t start_exfat1=(uint64_t)le32(exfat_header->fat_blocknr) << exfat_header->blocksize_bits;
uint64_t start_free=0;
uint64_t end_free=0;
if(disk->pread(disk, buffer_rootdir, 1 << cluster_shift, start) != (1<<cluster_shift))