]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/test/libcephfs/ceph_pthread_self.h
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / test / libcephfs / ceph_pthread_self.h
index 4c0c98f6ee3f76a5ef523e825fe9681b9ceddb42..9e3cdfa99e20fcb9ee2cc2bb40876a0be41e8405 100644 (file)
@@ -25,7 +25,7 @@ static uint64_t ceph_pthread_self() {
   static_assert(std::is_convertible_v<decltype(me), uint64_t> ||
                 std::is_pointer_v<decltype(me)>,
                 "we need to use pthread_self() for the owner parameter");
-  return reinterpret_cast<uint64_t>(me);
+  return static_cast<uint64_t>(me);
 }
 
 #endif