Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix ut-disjoint_set warning about signedness in test

  • Loading branch information...
commit 19f9dec1bc38c393ee3d1b77f6266b2022eb0744 1 parent 21eb5b8
@Mortal Mortal authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/unit/test_disjoint_set.cpp
View
4 test/unit/test_disjoint_set.cpp
@@ -63,7 +63,7 @@ class disjointsets_memory_test: public memory_test {
virtual size_type claimed_size() {return static_cast<size_type>(disjoint_sets<int>::memory_usage(123456));}
};
-bool stress_test(size_t n) {
+bool stress_test(int n) {
test_timer t("disjoint_sets");
for (int _ = 0; _ < 5; ++_) {
t.start();
@@ -87,5 +87,5 @@ int main(int argc, char **argv) {
return tpie::tests(argc, argv)
.test(basic_test, "basic")
.test(disjointsets_memory_test(), "memory")
- .test(stress_test, "stress", "n", 1024);
+ .test(stress_test, "stress", "n", static_cast<int>(1024));
}
Please sign in to comment.
Something went wrong with that request. Please try again.