demo/descriptor_map_demo.cc
changeset 1556 caf0f91e16a7
parent 1554 572bc7d0d3e2
child 1636 260ac104190f
     1.1 --- a/demo/descriptor_map_demo.cc	Wed Jul 13 19:49:36 2005 +0000
     1.2 +++ b/demo/descriptor_map_demo.cc	Wed Jul 13 20:02:29 2005 +0000
     1.3 @@ -90,7 +90,7 @@
     1.4    //
     1.5    // The inversemap cannot works without its DescriptorMap because
     1.6    // it holds reference to it. 
     1.7 -  const int EDGE = (int)(NODE * std::log(NODE));
     1.8 +  const int EDGE = (int)(NODE * std::log(double(NODE)));
     1.9    for (int i = 0; i < EDGE; ++i) {
    1.10      int si = (int)(std::rand() / (RAND_MAX + 1.0) * NODE);
    1.11      int ti = (int)(std::rand() / (RAND_MAX + 1.0) * NODE);