From: Adam C. Emerson Date: Tue, 9 Jan 2018 22:09:55 +0000 (-0500) Subject: denc: Fix std::array bound_encode X-Git-Tag: v13.0.2~525^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3aefaa8131a239a32a7073a7e6ccc65a93dc26a1;p=ceph.git denc: Fix std::array bound_encode std::arrays are not variable length structures and thus are not encoded with a length. Signed-off-by: Adam C. Emerson --- diff --git a/src/include/denc.h b/src/include/denc.h index 36ef8b7ae110..1b27f892327a 100644 --- a/src/include/denc.h +++ b/src/include/denc.h @@ -1066,7 +1066,6 @@ public: if constexpr (traits::bounded) { if constexpr (traits::featured) { size_t elem_size = 0; - p += sizeof(uint32_t); if (!s.empty()) { denc(*s.begin(), elem_size, f); p += elem_size * s.size();