COIN-OR::LEMON - Graph Library

Changeset 2386:81b47fc5c444 in lemon-0.x for demo/descriptor_map_demo.cc


Ignore:
Timestamp:
03/02/07 19:04:28 (17 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3217
Message:

Hard Warning checking

  • based on the remark of the ZIB user
  • we do not use -Winline
File:
1 edited

Legend:

Unmodified
Added
Removed
  • demo/descriptor_map_demo.cc

    r2242 r2386  
    6363  Value operator[](const Key& key) const {
    6464    double angle = descriptor[key] * 2 * M_PI
    65       / (double)descriptor.inverse().size();
     65      / double(descriptor.inverse().size());
    6666    double x = std::cos(angle) * radius + center.x;
    6767    double y = std::sin(angle) * radius + center.y;
     
    104104  // The inversemap cannot works without its DescriptorMap because
    105105  // it holds reference to it.
    106   const int EDGE = (int)(NODE * std::log(double(NODE)));
     106  const int EDGE = int(NODE * std::log(double(NODE)));
    107107  for (int i = 0; i < EDGE; ++i) {
    108108    int si = rnd[NODE];
Note: See TracChangeset for help on using the changeset viewer.