Skip to content

Commit

Permalink
fix: Fix initialization order in the BipartiteBuf constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
DNedic committed Apr 3, 2024
1 parent 7ca1769 commit e5736cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lockfree/spsc/bipartite_buf_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ namespace spsc {

template <typename T, size_t size>
BipartiteBuf<T, size>::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 <typename T, size_t size>
T *BipartiteBuf<T, size>::WriteAcquire(const size_t free_required) {
Expand Down

0 comments on commit e5736cb

Please sign in to comment.