xfs: silence Coverity overflow warning

inode size cannot really overflow integer, but Coverity does not know it.
CID: 96602
This commit is contained in:
Andrei Borzenkov 2015-06-19 18:38:25 +03:00
parent 15ba6a40be
commit 4db569ca6a

View file

@ -361,7 +361,7 @@ grub_xfs_inode_offset (struct grub_xfs_data *data,
static inline grub_size_t
grub_xfs_inode_size(struct grub_xfs_data *data)
{
return 1 << data->sblock.log2_inode;
return (grub_size_t)1 << data->sblock.log2_inode;
}
/*