fixed double int i declaration in for loop.
authorGengbin Zheng <gzheng@illinois.edu>
Wed, 2 Feb 2005 07:26:08 +0000 (07:26 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Wed, 2 Feb 2005 07:26:08 +0000 (07:26 +0000)
src/conv-ldb/topology.C

index 82e2366613bb05ab8aba110fcb446af3ba62d804..ae49ef1273acf03c70ef28652cc9b9ec9a2967dc 100644 (file)
@@ -41,18 +41,18 @@ int LBTopology::rec_hop_count(int src,int dest,int max_neigh,int count,int *visi
        int min_hop_cnt=999999;
        int ret_val=0;
        int skip_neigh=0;
-
+       int i;
        
        neighbors(src,pes,max_neigh);
        
        visited_srcs[count-1]=src;
        
-       for(int i=0;i<max_neigh;i++)
+       for(i=0;i<max_neigh;i++)
        {
                if(pes[i]==dest)
                        return count;
        }
-       for(int i=0;i<max_neigh;i++)
+       for(i=0;i<max_neigh;i++)
        {
                for(int j=0;j<count;j++)
                        if(visited_srcs[j]==pes[i])