diff -r 48769ac7ec32 -r caf0f91e16a7 demo/descriptor_map_demo.cc --- a/demo/descriptor_map_demo.cc Wed Jul 13 19:49:36 2005 +0000 +++ b/demo/descriptor_map_demo.cc Wed Jul 13 20:02:29 2005 +0000 @@ -90,7 +90,7 @@ // // The inversemap cannot works without its DescriptorMap because // it holds reference to it. - const int EDGE = (int)(NODE * std::log(NODE)); + const int EDGE = (int)(NODE * std::log(double(NODE))); for (int i = 0; i < EDGE; ++i) { int si = (int)(std::rand() / (RAND_MAX + 1.0) * NODE); int ti = (int)(std::rand() / (RAND_MAX + 1.0) * NODE);