Typo: CpvAccess(foo-1) instead of CpvAccess(foo)-1.
authorOrion Lawlor <olawlor@acm.org>
Mon, 23 Dec 2002 20:52:53 +0000 (20:52 +0000)
committerOrion Lawlor <olawlor@acm.org>
Mon, 23 Dec 2002 20:52:53 +0000 (20:52 +0000)
Amazingly, unless you're on -smp or uth- version, this
actually compiles!

src/conv-perf/traceCore.C

index 5d1b0eb4941e06cabef309549ef1885de4ec6394..9ce7a600aa582346d0c5dd0e74758f35f5e6bcd5 100644 (file)
@@ -405,7 +405,7 @@ if(CpvAccess(staticNumEntries)>= poolSize) {
  /*   for(int i=0;i<numEntries;i++){
            delete pool[i];
     }*/
-    new (&pool[0]) TraceEntry(pool[CpvAccess(staticNumEntries-1)]);
+    new (&pool[0]) TraceEntry(pool[CpvAccess(staticNumEntries)-1]);
     //numEntries = 1;
     CpvAccess(staticNumEntries)=1;
        //TODO