diff --git a/env/io_posix.cc b/env/io_posix.cc index 8b09cce57..dbc6bec7e 100644 --- a/env/io_posix.cc +++ b/env/io_posix.cc @@ -1543,7 +1543,8 @@ PosixDirectory::PosixDirectory(int fd) : fd_(fd) { #ifdef OS_LINUX struct statfs buf; int ret = fstatfs(fd, &buf); - is_btrfs_ = (ret == 0 && buf.f_type == BTRFS_SUPER_MAGIC); + is_btrfs_ = (ret == 0 && buf.f_type == static_cast( + BTRFS_SUPER_MAGIC)); #endif }