From ce5a34287d64e78db0e0858ee4028892853616a7 Mon Sep 17 00:00:00 2001 From: subcrip Date: Thu, 10 Oct 2024 11:26:51 +0800 Subject: [PATCH] Update string/hash_vec.cc Signed-off-by: subcrip --- string/hash_vec.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/string/hash_vec.cc b/string/hash_vec.cc index f23ab89..836e6d6 100644 --- a/string/hash_vec.cc +++ b/string/hash_vec.cc @@ -73,7 +73,7 @@ struct range_hash { template range_hash(const T& vec) { hp.emplace_back(); - hash_vec hs(vec.size()); + hash_vec hs(vec.size() + 1); for (auto&& x : vec) { hs.push_back(x); hp.emplace_back(hs.hash());