From 68773af1fc1695254081c1784a222454726b0d3c Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Wed, 22 Feb 2023 21:08:05 +0800 Subject: [PATCH] fix a bug --- src/namedict.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/namedict.h b/src/namedict.h index 6b2610e1..a20bf4fe 100644 --- a/src/namedict.h +++ b/src/namedict.h @@ -26,6 +26,7 @@ namespace pkpy{ NameDict(const NameDict& other) { this->_capacity = other._capacity; this->_size = other._size; + this->_load_factor = other._load_factor; this->_a = new NameDictNode[_capacity]; for(int i=0; i<_capacity; i++) _a[i] = other._a[i]; }