[api] Remove redundant uint32_t cast in enum raw byte writes

This commit is contained in:
J. Nick Koston
2026-04-05 18:51:14 -10:00
parent 5c178eab63
commit 5a6330e366
2 changed files with 52 additions and 52 deletions
+1 -1
View File
@@ -1342,7 +1342,7 @@ class EnumType(TypeInfo):
return (
f"if (this->{self.field_name}) {{\n"
f" buffer.write_raw_byte({tag});\n"
f" buffer.write_raw_byte(static_cast<uint8_t>({value_expr}));\n"
f" buffer.write_raw_byte(static_cast<uint8_t>(this->{self.field_name}));\n"
f"}}"
)
if self.force: