From 02b626ae1a9136e5f9c9fcb8720c2fd4ac536b2e Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 18 Oct 2025 12:00:29 -1000 Subject: [PATCH] fix --- script/api_protobuf/api_protobuf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/api_protobuf/api_protobuf.py b/script/api_protobuf/api_protobuf.py index f423097b7f..0f3505f657 100755 --- a/script/api_protobuf/api_protobuf.py +++ b/script/api_protobuf/api_protobuf.py @@ -1478,7 +1478,7 @@ class RepeatedTypeInfo(TypeInfo): return None return ( f"case {self.number}: " - f"if (static_cast({content}) <= 31) " + f"if (static_cast({content}) < 32) " f"this->{self.field_name} |= (1U << static_cast({content})); " f"break;" )