Update tests/util/list.cpp to suppress a g++ warning
This commit is contained in:
parent
f7196e05ff
commit
5858c9d5e0
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ static void tst5() {
|
||||||
to_buffer(to_list(tmp.begin(), tmp.end()), tmp2);
|
to_buffer(to_list(tmp.begin(), tmp.end()), tmp2);
|
||||||
lean_assert(tmp2 == tmp);
|
lean_assert(tmp2 == tmp);
|
||||||
list<int> l = to_list(tmp.begin(), tmp.end());
|
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);
|
lean_assert(reverse(reverse(l)) == l);
|
||||||
auto p = split(l);
|
auto p = split(l);
|
||||||
list<int> l2 = append(p.first, p.second);
|
list<int> l2 = append(p.first, p.second);
|
||||||
|
|
Loading…
Reference in a new issue