Merge a fix from the D1 frontend to the D2 frontend.

This commit is contained in:
Frits van Bommel
2009-06-02 20:28:53 +02:00
parent 0c6a40485d
commit 2cd4d15be1

View File

@@ -147,7 +147,7 @@ void Array::append(Array *a)
void Array::remove(unsigned i)
{
memmove(data + i, data + i + 1, (dim - i) * sizeof(data[0]));
memmove(data + i, data + i + 1, (dim - i - 1) * sizeof(data[0]));
dim--;
}