Fixed error checking before the variable update (#1902)
This commit is contained in:
parent
e2c4dc1312
commit
fe1c4b2ec8
|
@ -133,9 +133,9 @@ namespace data {
|
|||
: Array(0u, std::move(data)) {}
|
||||
|
||||
void SetOffset(size_t offset) {
|
||||
_offset = offset;
|
||||
DEBUG_ASSERT(_data.size() >= _offset);
|
||||
DEBUG_ASSERT((_data.size() - _offset) % sizeof(T) == 0u);
|
||||
_offset = offset;
|
||||
DEBUG_ASSERT(begin() <= end());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue