Add parentheses to get rid of 'suggest parentheses around && within ||' warnings.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37311 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1723,8 +1723,8 @@ check_partition_location_ep(partition_data* partition, off_t offset,
|
|||||||
|
|
||||||
// partition does not lie within extended partition
|
// partition does not lie within extended partition
|
||||||
if (offset < partition->offset
|
if (offset < partition->offset
|
||||||
|| offset > partition->offset + partition->size
|
|| (offset > partition->offset + partition->size
|
||||||
&& offset + size <= partition->offset + partition->size)
|
&& offset + size <= partition->offset + partition->size))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// check if the new partition table is within an existing partition
|
// check if the new partition table is within an existing partition
|
||||||
@@ -1738,8 +1738,8 @@ check_partition_location_ep(partition_data* partition, off_t offset,
|
|||||||
if (ptsOffset > logical->Offset()
|
if (ptsOffset > logical->Offset()
|
||||||
&& ptsOffset < logical->Offset() + logical->Size())
|
&& ptsOffset < logical->Offset() + logical->Size())
|
||||||
return false;
|
return false;
|
||||||
if (logical->PartitionTableOffset() >= offset
|
if ((logical->PartitionTableOffset() >= offset
|
||||||
&& logical->PartitionTableOffset() < offset + size
|
&& logical->PartitionTableOffset() < offset + size)
|
||||||
|| logical->PartitionTableOffset() == ptsOffset)
|
|| logical->PartitionTableOffset() == ptsOffset)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user