We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94f01cc commit 664dd8bCopy full SHA for 664dd8b
src/librawspeed/adt/Array2DRef.h
@@ -123,11 +123,10 @@ inline void Array2DRef<T>::establishClassInvariants() const noexcept {
123
data.establishClassInvariants();
124
invariant(width >= 0);
125
invariant(height >= 0);
126
+ invariant(_pitch != 0);
127
invariant(_pitch >= 0);
128
invariant(_pitch >= width);
129
invariant((width == 0) == (height == 0));
- invariant((_pitch == 0) == (width == 0));
130
- invariant((_pitch == 0) == (height == 0));
131
invariant(data.size() == _pitch * height);
132
}
133
0 commit comments