From 28ecf041ee20b4455b68ecfa31e988640d7230ab Mon Sep 17 00:00:00 2001 From: Krzysztof Kosi??ski Date: Mon, 8 Dec 2008 20:29:12 +0000 Subject: "make check" now compiles and runs on Linux. (bzr r6973) --- src/util/list-container-test.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/util') diff --git a/src/util/list-container-test.h b/src/util/list-container-test.h index c2db79fee..7765352eb 100644 --- a/src/util/list-container-test.h +++ b/src/util/list-container-test.h @@ -115,15 +115,16 @@ public: void testContainerSize() { + // max_size() and size() return ListContainer<>::size_type which is unsigned int Inkscape::Util::ListContainer empty; TS_ASSERT(empty.empty()); - TS_ASSERT_EQUALS(static_cast(empty.size()), 0); + TS_ASSERT_EQUALS(empty.size(), 0u); int const a[] = { 1, 2, 3 }; Inkscape::Util::ListContainer c_a(ARRAY_RANGE(a)); TS_ASSERT(!c_a.empty()); - TS_ASSERT_EQUALS(static_cast(c_a.size()), 3); + TS_ASSERT_EQUALS(c_a.size(), 3u); - TS_ASSERT_LESS_THAN(0, static_cast(empty.max_size())); + TS_ASSERT_LESS_THAN(0u, empty.max_size()); } void testAppending() -- cgit v1.2.3