]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - fs/fat/fat_write.c
disk: part_efi: clarify lbaint_t usage
[karo-tx-uboot.git] / fs / fat / fat_write.c
index ba7e3aeb0b62ccf46495e012b3bceeae01b1c039..24ed5d371502e651f2c5a3a41b0cb90e1ffc11b2 100644 (file)
@@ -947,7 +947,7 @@ static int do_fat_write(const char *filename, void *buffer,
 
        total_sector = bs.total_sect;
        if (total_sector == 0)
-               total_sector = cur_part_info.size;
+               total_sector = (int)cur_part_info.size; /* cast of lbaint_t */
 
        if (mydata->fatsize == 32)
                mydata->fatlength = bs.fat32_length;