this not crash
This commit is contained in:
parent
83c2c4825c
commit
5c84f12440
@ -20,11 +20,11 @@ class FixedArrayList : public ArrayList<T, count_t> {
|
||||
FixedArrayList() : ArrayList<T, count_t>(data, MAX_SIZE) {}
|
||||
|
||||
FixedArrayList(const FixedArrayList& other) : ArrayList<T, count_t>(data, MAX_SIZE) {
|
||||
for (size_t idx = 0; idx < sizeof(data); idx++) {
|
||||
data[idx] = other.data[idx];
|
||||
}
|
||||
this->entries = data;
|
||||
this->size = other.size;
|
||||
for (size_t idx = 0; idx < this->size; idx++) {
|
||||
data[idx] = other.data[idx];
|
||||
}
|
||||
}
|
||||
|
||||
FixedArrayList& operator=(FixedArrayList other) {
|
||||
|
Loading…
Reference in New Issue
Block a user