From 2c4ed23a6a3af570e20d0f3c8586bf0ccabb76e4 Mon Sep 17 00:00:00 2001 From: CodSpeed Bot Date: Thu, 8 Oct 2026 00:46:46 +0000 Subject: [PATCH] [api] Format packed varint counter --- esphome/components/api/proto.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/api/proto.h b/esphome/components/api/proto.h index ef8062cd406..10bdf74e24b 100644 --- a/esphome/components/api/proto.h +++ b/esphome/components/api/proto.h @@ -71,7 +71,7 @@ inline constexpr int64_t decode_zigzag64(uint64_t value) { template inline uint16_t count_packed_varints(const uint8_t *data, size_t len) { constexpr size_t word_size = sizeof(Word); constexpr Word lane_ones = ~Word{0} / 0xFF; // 0x01..01 - constexpr size_t max_chunk_words = 255; // a byte lane counts at most one per word + constexpr size_t max_chunk_words = 255; // a byte lane counts at most one per word const uint8_t *end = data + len; size_t continuations = 0; // Leading bytes before the first word boundary