From: bdemsky Date: Tue, 11 May 2004 20:57:57 +0000 (+0000) Subject: Various bug fixes. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a797da87dfc577cc7dfad53c5bc52263c639e654;p=repair.git Various bug fixes. --- 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() {