From: Martin Vidner Date: Tue, 12 Jun 2007 11:45:43 +0000 (+0000) Subject: fixed signedness warnings X-Git-Tag: BASE-SuSE-Linux-10_3-Branch~631 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3cb31b4fb5b2b4652ca9c1ace196ab38b102e255;p=platform%2Fupstream%2Flibzypp.git fixed signedness warnings --- diff --git a/tests/parser/yum/PatchesFileReader_test.cc b/tests/parser/yum/PatchesFileReader_test.cc index c972965..033a3f1 100644 --- a/tests/parser/yum/PatchesFileReader_test.cc +++ b/tests/parser/yum/PatchesFileReader_test.cc @@ -55,7 +55,7 @@ void patches_read_test(const string &dir) std::ifstream ifs( file.extend(".solution").asString().c_str() ); cout << "Comparing to " << file.extend(".solution") << endl; - int count = 0; + unsigned int count = 0; while ( ifs && ! ifs.eof() && count < collect.items.size() ) { string id; diff --git a/tests/parser/yum/RepomdFileReader_test.cc b/tests/parser/yum/RepomdFileReader_test.cc index 874576d..2025089 100644 --- a/tests/parser/yum/RepomdFileReader_test.cc +++ b/tests/parser/yum/RepomdFileReader_test.cc @@ -54,7 +54,7 @@ void repomd_read_test(const string &dir) std::ifstream ifs( file.extend(".solution").asString().c_str() ); - int count = 0; + unsigned int count = 0; while ( ifs && ! ifs.eof() && count < collect.items.size() ) { string dtype; diff --git a/tests/zypp/Edition.cc b/tests/zypp/Edition.cc index 2ce32d4..3290ac1 100644 --- a/tests/zypp/Edition.cc +++ b/tests/zypp/Edition.cc @@ -21,18 +21,18 @@ void edition_test() Edition _ed1 ("1"); Edition _ed2 ("1.1"); Edition _ed3 ("1:1"); - Edition _ed4 ("1:1-1"); + Edition _ed4 ("2:1-1"); BOOST_CHECK_EQUAL(_ed2.version(), "1.1"); BOOST_CHECK_EQUAL(_ed2.release(), ""); - BOOST_CHECK_EQUAL(_ed2.epoch(), 0); - BOOST_CHECK_EQUAL(_ed4.epoch(), 1); + BOOST_CHECK_EQUAL(_ed2.epoch(), 0U); + BOOST_CHECK_EQUAL(_ed4.epoch(), 2U); BOOST_CHECK_EQUAL(_ed1, Edition ("1", "")); BOOST_CHECK_EQUAL(_ed2, Edition ("1.1", "")); BOOST_CHECK_EQUAL(_ed3, Edition ("1", "", "1")); BOOST_CHECK_EQUAL(_ed3, Edition ("1", "", 1)); - BOOST_CHECK_EQUAL(_ed4, Edition ("1", "1", 1)); + BOOST_CHECK_EQUAL(_ed4, Edition ("1", "1", 2)); } test_suite* @@ -41,4 +41,4 @@ init_unit_test_suite( int, char* [] ) test_suite* test= BOOST_TEST_SUITE( "EditionTest" ); test->add( BOOST_TEST_CASE( &edition_test ), 0 /* expected zero error */ ); return test; -} \ No newline at end of file +}