]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
include/types: fixed compile warning for signed/unsigned comparison
authorJason Dillaman <dillaman@redhat.com>
Thu, 18 Oct 2018 18:07:36 +0000 (14:07 -0400)
committerJason Dillaman <dillaman@redhat.com>
Mon, 22 Oct 2018 19:50:45 +0000 (15:50 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/include/types.h

index 73123bc9733f188365509694dea7ed00e3d704b2..8103cabbb3656cbf4272f1b2152f1a30522f392d 100644 (file)
@@ -158,7 +158,7 @@ inline std::ostream& operator<<(std::ostream& out, const std::deque<A,Alloc>& v)
 
 template<typename... Ts>
 inline std::ostream& operator<<(std::ostream& out, const std::tuple<Ts...> &t) {
-  auto f = [n = sizeof...(Ts), i = 0, &out](const auto& e) mutable {
+  auto f = [n = sizeof...(Ts), i = 0U, &out](const auto& e) mutable {
     out << e;
     if (++i != n)
       out << ",";