]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
include/types.h: force ceph_le64 to long in operator<<
authorSamuel Just <sjust@redhat.com>
Thu, 21 Jan 2021 00:15:41 +0000 (00:15 +0000)
committerSamuel Just <sjust@redhat.com>
Wed, 24 Feb 2021 02:42:56 +0000 (18:42 -0800)
Overload resolution wasn't working when included transitively from
seastore.cc, this was easier than figuring out why.

Signed-off-by: Samuel Just <sjust@redhat.com>
src/include/types.h

index 60d1fb305a8e62c13e0b81511dfafaf9fbfc90c5..6737f3dc91814731ddfff36c6fd62e2f93efc0a1 100644 (file)
@@ -478,7 +478,7 @@ inline std::ostream& operator<<(std::ostream& out, const byte_u_t& b)
 
 inline std::ostream& operator<<(std::ostream& out, const ceph_mon_subscribe_item& i)
 {
-  return out << i.start
+  return out << (long)i.start
             << ((i.flags & CEPH_SUBSCRIBE_ONETIME) ? "" : "+");
 }