diff --git a/CHANGELOG.md b/CHANGELOG.md index 12231fe4..7c8de908 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,7 +12,7 @@ This project adheres to [Semantic Versioning](https://semver.org/). ### Changed ### Fixed - +- `add_bool` now appends data through `buffer_customization::push_back`. ## [1.8.1] - 2025-07-15 diff --git a/include/protozero/basic_pbf_writer.hpp b/include/protozero/basic_pbf_writer.hpp index c26ba67c..cc0f7cd5 100644 --- a/include/protozero/basic_pbf_writer.hpp +++ b/include/protozero/basic_pbf_writer.hpp @@ -391,7 +391,7 @@ class basic_pbf_writer { add_field(tag, pbf_wire_type::varint); protozero_assert(m_pos == 0 && "you can't add fields to a parent basic_pbf_writer if there is an existing basic_pbf_writer for a submessage"); protozero_assert(m_data); - m_data->push_back(static_cast(value)); + buffer_customization::push_back(m_data, static_cast(value)); } /**