Avoid ambiguity.
authoralpar
Wed, 13 Jul 2005 20:02:29 +0000
changeset 1556caf0f91e16a7
parent 1555 48769ac7ec32
child 1557 3e8d928e283d
Avoid ambiguity.
demo/descriptor_map_demo.cc
     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);