Array::removeLast() and negative values


#1

Array::removeLast() accepts negative values and does not deal correctly with them:
if a negative value is passed, numUsed is set to a wrong value (which can exceed the allocated size).
it should probably assert and ignore?


#2

Yes, as assertion would go well in there, I’ll sort that out…