Update tests/util/list.cpp to suppress a g++ warning

This commit is contained in:
Soonho Kong 2013-09-12 01:39:04 -07:00
parent f7196e05ff
commit 5858c9d5e0

View file

@ -66,7 +66,7 @@ static void tst5() {
to_buffer(to_list(tmp.begin(), tmp.end()), tmp2);
lean_assert(tmp2 == tmp);
list<int> l = to_list(tmp.begin(), tmp.end());
lean_assert(n == 0 || car(reverse(l)) == n - 1);
lean_assert(n == 0 || car(reverse(l)) == static_cast<int>(n - 1));
lean_assert(reverse(reverse(l)) == l);
auto p = split(l);
list<int> l2 = append(p.first, p.second);