From e5736cbb2db7e439fc854e2c763a74cb0cc18796 Mon Sep 17 00:00:00 2001 From: Djordje Nedic Date: Wed, 3 Apr 2024 18:23:25 +0200 Subject: [PATCH] fix: Fix initialization order in the BipartiteBuf constructor --- lockfree/spsc/bipartite_buf_impl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lockfree/spsc/bipartite_buf_impl.hpp b/lockfree/spsc/bipartite_buf_impl.hpp index 6e7d2d7..27552d5 100644 --- a/lockfree/spsc/bipartite_buf_impl.hpp +++ b/lockfree/spsc/bipartite_buf_impl.hpp @@ -48,7 +48,7 @@ namespace spsc { template BipartiteBuf::BipartiteBuf() - : _r(0U), _w(0U), _i(0U), _write_wrapped(false), _read_wrapped(false) {} + : _write_wrapped(false), _read_wrapped(false), _r(0U), _w(0U), _i(0U) {} template T *BipartiteBuf::WriteAcquire(const size_t free_required) {