diff --git a/src/tests/util/list.cpp b/src/tests/util/list.cpp index 0fc938943..e7eaa2fb5 100644 --- a/src/tests/util/list.cpp +++ b/src/tests/util/list.cpp @@ -66,7 +66,7 @@ static void tst5() { to_buffer(to_list(tmp.begin(), tmp.end()), tmp2); lean_assert(tmp2 == tmp); list 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(n - 1)); lean_assert(reverse(reverse(l)) == l); auto p = split(l); list l2 = append(p.first, p.second);