From bfee319fb08ab057ec07b250336afa703b63bc7f Mon Sep 17 00:00:00 2001 From: Nik Bougalis Date: Fri, 5 Sep 2014 16:07:14 -0700 Subject: [PATCH] sizeof(int*) where sizeof(int) was intended --- util/hash_cuckoo_rep.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/hash_cuckoo_rep.cc b/util/hash_cuckoo_rep.cc index a9a79a274..2ee05faac 100644 --- a/util/hash_cuckoo_rep.cc +++ b/util/hash_cuckoo_rep.cc @@ -70,7 +70,7 @@ class HashCuckooRep : public MemTableRep { } cuckoo_path_ = reinterpret_cast( - arena_->Allocate(sizeof(int*) * (cuckoo_path_max_depth_ + 1))); + arena_->Allocate(sizeof(int) * (cuckoo_path_max_depth_ + 1))); is_nearly_full_ = false; }