mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-14 13:21:34 +00:00
Fix warning using || and && without parentheses in ASSERT()
This commit is contained in:
parent
12becdaf45
commit
5a8fb9cd67
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user