fixed compiler error for VC++.
authorGengbin Zheng <gzheng@illinois.edu>
Sun, 26 Jan 2003 18:39:17 +0000 (18:39 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Sun, 26 Jan 2003 18:39:17 +0000 (18:39 +0000)
src/conv-perf/traceCore.C

index 9868526b753932abfbc2c92e7cfb73408587bdcd..1e830f7fb835499c39007a480be3e6e6e4e4b2e4 100644 (file)
@@ -144,15 +144,16 @@ void TraceCore::startPtc(){
 
 
 void TraceCore::closePtc(){
+       int i;
        if(traceCoreOn ==0){
                return;
        }
        fprintf(fpPtc,"%d %d ",maxlID,numLangs);
-       for(int i=0;i<numLangs;i++){
+       for(i=0;i<numLangs;i++){
                fprintf(fpPtc,"%d %s ",lIDList[i],lNames[i]);
        }
        fprintf(fpPtc,"\n");
-       for(int i=0;i<numLangs;i++){
+       for(i=0;i<numLangs;i++){
                fprintf(fpPtc,"%d %d %d ",lIDList[i],maxeID[i],numEvents[i]);
                print_TraceCoreEvent(fpPtc,eventLists[i],lNames[i]);
                fprintf(fpPtc,"\n");