diff --git a/src/FileSystem.cpp b/src/FileSystem.cpp index c576984..9894c4e 100644 --- a/src/FileSystem.cpp +++ b/src/FileSystem.cpp @@ -69,7 +69,7 @@ namespace simgrid::fsmod { throw std::invalid_argument("Invalid partition path"); } for (auto const &mp: this->partitions_) { - if ((mp.first.rfind(cleanup_mount_point, 0) == 0) or (cleanup_mount_point.rfind(mp.first, 0) == 0)) { + if ((mp.first.rfind(cleanup_mount_point, 0) == 0) || (cleanup_mount_point.rfind(mp.first, 0) == 0)) { throw std::invalid_argument("Mount point already exists or is prefix of existing mount point"); } } diff --git a/src/Partition.cpp b/src/Partition.cpp index d2dbdc0..1ec2e20 100644 --- a/src/Partition.cpp +++ b/src/Partition.cpp @@ -98,7 +98,7 @@ namespace simgrid::fsmod { if (src_metadata->get_file_refcount() > 0) { throw FileSystemException(XBT_THROW_POINT, "Cannot move a file that is open"); } - if (dst_metadata and dst_metadata->get_file_refcount()) { + if (dst_metadata && dst_metadata->get_file_refcount()) { throw FileSystemException(XBT_THROW_POINT, "Cannot move to a destination file that is open"); }