mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-15 04:13:14 +01:00
Merge a fix from the D1 frontend to the D2 frontend.
This commit is contained in:
@@ -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--;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user