|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r60078 - trunk/libs/graph_parallel/test
From: jewillco_at_[hidden]
Date: 2010-03-02 14:52:21
Author: jewillco
Date: 2010-03-02 14:52:20 EST (Tue, 02 Mar 2010)
New Revision: 60078
URL: http://svn.boost.org/trac/boost/changeset/60078
Log:
Fixed warnings in test cases
Text files modified:
trunk/libs/graph_parallel/test/distributed_connected_components_test.cpp | 2 +-
trunk/libs/graph_parallel/test/distributed_csr_algorithm_test.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/libs/graph_parallel/test/distributed_connected_components_test.cpp
==============================================================================
--- trunk/libs/graph_parallel/test/distributed_connected_components_test.cpp (original)
+++ trunk/libs/graph_parallel/test/distributed_connected_components_test.cpp 2010-03-02 14:52:20 EST (Tue, 02 Mar 2010)
@@ -98,7 +98,7 @@
// erdos_renyi_iterator<minstd_rand, Graph>(),
// n, pg, distrib);
- int m = n * n * _p/2;
+ int m = int(n * n * _p/2);
double a = 0.57, b = 0.19, c = 0.19, d = 0.05;
// Last boolean parameter makes R-MAT bidirectional
Modified: trunk/libs/graph_parallel/test/distributed_csr_algorithm_test.cpp
==============================================================================
--- trunk/libs/graph_parallel/test/distributed_csr_algorithm_test.cpp (original)
+++ trunk/libs/graph_parallel/test/distributed_csr_algorithm_test.cpp 2010-03-02 14:52:20 EST (Tue, 02 Mar 2010)
@@ -243,7 +243,7 @@
make_generator_iterator(gen, uniform_int<int>(0, C)),
n);
Digraph g2(SWIter(gen, n, k, prob), SWIter(), n);
- Digraph g3(RMATIter(gen, n, (n*n*prob), a, b, c, d), RMATIter(), n);
+ Digraph g3(RMATIter(gen, n, size_t(n*n*prob), a, b, c, d), RMATIter(), n);
// Test BFS
breadth_first_search(g, vertex(0, g), visitor(bfs_visitor<>()));
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk