Commit 3407c5c8 authored by Adam Reichold's avatar Adam Reichold Committed by Albert Astals Cid

Reintroduce the assertion in Array::remove since there it is not possible to...

Reintroduce the assertion in Array::remove since there it is not possible to check any return value.
parent 2c25d197
Pipeline #3829 passed with stage
in 3 minutes and 1 second
......@@ -107,6 +107,7 @@ void Array::add(Object &&elem) {
void Array::remove(int i) {
arrayLocker();
if (i < 0 || i >= length) {
assert(i >= 0 && i < length);
return;
}
--length;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment