remove some warnings
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@172 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
da963073d4
commit
fdd476c49b
2 changed files with 5 additions and 5 deletions
|
@ -182,8 +182,8 @@ void check_insert1(test_vect1_t& v)
|
|||
template <class Vect>
|
||||
void check_swap(Vect& v1, Vect& v2)
|
||||
{
|
||||
unsigned size1 = v1.size();
|
||||
unsigned size2 = v2.size();
|
||||
size_t size1 = v1.size();
|
||||
size_t size2 = v2.size();
|
||||
v1.swap(v2);
|
||||
assert(v1.size() == size2);
|
||||
assert(v2.size() == size1);
|
||||
|
@ -339,7 +339,7 @@ void test_vect5()
|
|||
vec51.insert(std::make_pair(2, "XX"));
|
||||
|
||||
test_vect5_t::const_iterator it = vec51.begin();
|
||||
int count=1;
|
||||
std::string::size_type count=1;
|
||||
|
||||
while (it != vec51.end()) {
|
||||
assert(std::string(it->second).length()==count);
|
||||
|
|
|
@ -24,7 +24,7 @@ struct DataGeneratorsTest : public Test
|
|||
unsigned char,
|
||||
signed char,
|
||||
wchar_t>::Result char_types;
|
||||
int n = Length<char_types>::value;
|
||||
std::size_t n = Length<char_types>::value;
|
||||
|
||||
std::vector<const char*> names;
|
||||
names.reserve(n);
|
||||
|
@ -43,7 +43,7 @@ struct DataGeneratorsTest : public Test
|
|||
iterate_types<some_types, sizeof_type>(std::back_inserter(sizes));
|
||||
size_t apriori_size[] = {sizeof(char), sizeof(short), sizeof(int), sizeof(double)};
|
||||
b = true;
|
||||
for(int i=0; i<n; ++i)
|
||||
for(std::size_t i=0; i<n; ++i)
|
||||
b &= sizes[i] == apriori_size[i];
|
||||
testAssert("iterate_types - Check Elements", b, result);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue