summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fs/btrfs/ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index 363e209679b..38a68863390 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -1000,7 +1000,7 @@ static noinline int copy_to_sk(struct btrfs_root *root,
advance_key:
if (key->offset < (u64)-1)
key->offset++;
- else if (key->type < (u64)-1)
+ else if (key->type < (u8)-1)
key->type++;
else if (key->objectid < (u64)-1)
key->objectid++;