Fix warning using || and && without parentheses in ASSERT()

This commit is contained in:
David Capello 2019-11-15 16:06:02 -03:00
parent 12becdaf45
commit 5a8fb9cd67

View File

@ -32,8 +32,8 @@ namespace doc {
ASSERT(fromIndex >= 0 && fromIndex < size());
// toIndex = kNoMap means (there is no remap for this value, useful
// to ignore this entry when we invert the map)
ASSERT(toIndex == kNoMap ||
toIndex >= 0 && toIndex < size());
ASSERT((toIndex == kNoMap) ||
(toIndex >= 0 && toIndex < size()));
m_map[fromIndex] = toIndex;
}