COIN-OR::LEMON - Graph Library

Changeset 1855:c72636dcf0bd in lemon-0.x for benchmark


Ignore:
Timestamp:
12/07/05 16:43:44 (14 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2423
Message:

Eliminate warnins

File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/graph-bench.cc

    r1847 r1855  
    2929 
    3030  for(count=0;count<rat;count++) {
    31     equ[count%rat]=G.addEdge(nodes[(count*p)%n],nodes[(count*p/n)%n]);
     31    equ[int(count%rat)]=G.addEdge(nodes[int((count*p)%n)],
     32                                  nodes[int((count*p/n)%n)]);
    3233  }
    3334  for(;(count%rat)||((count*p)%n)||((count*p/n)%n);count++) {
    3435    //    if(!(count%1000000)) fprintf(stderr,"%d\r",count);
    3536    if(count%rat) G.erase(equ[count%rat]);
    36     equ[count%rat]=G.addEdge(nodes[(count*p)%n],nodes[(count*p/n)%n]);
     37    equ[int(count%rat)]=G.addEdge(nodes[int((count*p)%n)],
     38                                  nodes[int((count*p/n)%n)]);
    3739  }
    3840//   std::cout << "Added " << count
Note: See TracChangeset for help on using the changeset viewer.