mirror of
https://github.com/pocketpy/pocketpy
synced 2025-12-07 18:50:19 +00:00
fix a bug
This commit is contained in:
parent
795c2fd12c
commit
68773af1fc
@ -26,6 +26,7 @@ namespace pkpy{
|
|||||||
NameDict(const NameDict& other) {
|
NameDict(const NameDict& other) {
|
||||||
this->_capacity = other._capacity;
|
this->_capacity = other._capacity;
|
||||||
this->_size = other._size;
|
this->_size = other._size;
|
||||||
|
this->_load_factor = other._load_factor;
|
||||||
this->_a = new NameDictNode[_capacity];
|
this->_a = new NameDictNode[_capacity];
|
||||||
for(int i=0; i<_capacity; i++) _a[i] = other._a[i];
|
for(int i=0; i<_capacity; i++) _a[i] = other._a[i];
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user