From: bdemsky Date: Fri, 15 Jul 2011 23:58:54 +0000 (+0000) Subject: another odd core bug X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0edac4da0daa708b4902475e5cefd818bf652b62;p=IRC.git another odd core bug --- diff --git a/Robust/src/Runtime/bamboo/pmc_mem.c b/Robust/src/Runtime/bamboo/pmc_mem.c index 191ce43b..be245173 100644 --- a/Robust/src/Runtime/bamboo/pmc_mem.c +++ b/Robust/src/Runtime/bamboo/pmc_mem.c @@ -22,7 +22,7 @@ void * pmc_alloc(unsigned int * numbytesallocated, unsigned int minimumbytes) { if ((finishptr-startptr)lowunit; - unsigned int endindex=pmc_heapptr->regions[i+1].highunit; + unsigned int endindex=(i+1)regions[i+1].highunit:pmc_heapptr->regions[i].highunit; void * newstartptr=startptr+memcheck; //update unit end points