Updated to dmdfe 2.051

This commit is contained in:
Alexey Prokhin
2011-01-05 18:21:40 +03:00
parent 8a4ee0ede5
commit c5e9784863
37 changed files with 1405 additions and 1157 deletions

View File

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