Merge pull request #32 from Matt8898/master

Fix ext2 warning
This commit is contained in:
mint 2020-09-23 17:30:53 +02:00 committed by GitHub
commit 9a9df2b146
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -177,7 +177,7 @@ static int ext2_get_inode(struct ext2_inode *ret, uint64_t drive, struct part *p
read_partition(drive, part, &target_descriptor, bgd_offset, sizeof(struct ext2_bgd));
const uint64_t ino_size = sb->s_rev_level == 0 ? sizeof(struct ext2_inode) : sb->s_inode_size;
const uint64_t ino_offset = ((target_descriptor.bg_inode_table | (bit64 ? (target_descriptor.inode_id_hi << 32) : 0)) * block_size) +
const uint64_t ino_offset = ((target_descriptor.bg_inode_table | (bit64 ? ((uint64_t)target_descriptor.inode_id_hi << 32) : 0)) * block_size) +
(ino_size * ino_tbl_idx);
read_partition(drive, part, ret, ino_offset, sizeof(struct ext2_inode));