From a797da87dfc577cc7dfad53c5bc52263c639e654 Mon Sep 17 00:00:00 2001 From: bdemsky Date: Tue, 11 May 2004 20:57:57 +0000 Subject: [PATCH] Various bug fixes. --- Repair/RepairCompiler/MCC/Runtime/SimpleHash.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Repair/RepairCompiler/MCC/Runtime/SimpleHash.cc b/Repair/RepairCompiler/MCC/Runtime/SimpleHash.cc index 63b23c3..25cf6dd 100755 --- a/Repair/RepairCompiler/MCC/Runtime/SimpleHash.cc +++ b/Repair/RepairCompiler/MCC/Runtime/SimpleHash.cc @@ -366,8 +366,14 @@ RepairHash::RepairHash(int size) { this->numelements = 0; } +#define REPAIRSIZE 100 RepairHash::RepairHash() { - RepairHash(100); + this->size = REPAIRSIZE; + this->bucket = new RepairHashNode* [REPAIRSIZE]; + for (int i=0;inodelist=0; + this->numelements = 0; } RepairHash::~RepairHash() { -- 2.34.1