mirror of https://github.com/xzeldon/htop.git
minor typo in Vector.c
This commit is contained in:
parent
241e4b3dbf
commit
3afa5dfbcc
4
Vector.c
4
Vector.c
|
@ -322,9 +322,9 @@ void Vector_splice(Vector* this, Vector* from) {
|
||||||
assert(Vector_isConsistent(from));
|
assert(Vector_isConsistent(from));
|
||||||
assert(!(this->owner && from->owner));
|
assert(!(this->owner && from->owner));
|
||||||
|
|
||||||
int olditmes = this->items;
|
int olditems = this->items;
|
||||||
this->items += from->items;
|
this->items += from->items;
|
||||||
Vector_checkArraySize(this);
|
Vector_checkArraySize(this);
|
||||||
for (int j = 0; j < from->items; j++)
|
for (int j = 0; j < from->items; j++)
|
||||||
this->array[olditmes + j] = from->array[j];
|
this->array[olditems + j] = from->array[j];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue