From 6983bf2e225639f36613d92ea8fc1875dcec4064 Mon Sep 17 00:00:00 2001 From: Mikael Lindemann Date: Thu, 21 May 2026 07:35:29 +0000 Subject: [PATCH] fix: add_bool now calls through buffer_customization. --- CHANGELOG.md | 2 +- include/protozero/basic_pbf_writer.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)); } /**