Correct issue where open enums were incorrectly expected to be linked by upb_MiniTable_GetSubList()

PiperOrigin-RevId: 618883303
pull/16293/head
Protobuf Team Bot 10 months ago committed by Copybara-Service
parent 9ce51d1ed8
commit 897fd04266
  1. 2
      upb/mini_descriptor/link.c

@ -88,7 +88,7 @@ uint32_t upb_MiniTable_GetSubList(const upb_MiniTable* m,
for (int i = 0; i < upb_MiniTable_FieldCount(m); i++) {
const upb_MiniTableField* f = upb_MiniTable_GetFieldByIndex(m, i);
if (upb_MiniTableField_CType(f) == kUpb_CType_Enum) {
if (upb_MiniTableField_IsClosedEnum(f)) {
*subs = f;
++subs;
enum_count++;

Loading…
Cancel
Save