summaryrefslogtreecommitdiff
path: root/lib/ext2fs/link.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ext2fs/link.c')
-rw-r--r--lib/ext2fs/link.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ext2fs/link.c b/lib/ext2fs/link.c
index 4cc8426a..0fd3ea86 100644
--- a/lib/ext2fs/link.c
+++ b/lib/ext2fs/link.c
@@ -52,9 +52,9 @@ static int link_proc(struct ext2_dir_entry *dirent,
* if so, absorb it into this one.
*/
next = (struct ext2_dir_entry *) (buf + offset + curr_rec_len);
- if ((offset + curr_rec_len < blocksize - 8) &&
+ if ((offset + (int) curr_rec_len < blocksize - 8) &&
(next->inode == 0) &&
- (offset + curr_rec_len + next->rec_len <= blocksize)) {
+ (offset + (int) curr_rec_len + (int) next->rec_len <= blocksize)) {
curr_rec_len += next->rec_len;
ls->err = ext2fs_set_rec_len(ls->fs, curr_rec_len, dirent);
if (ls->err)