upb: fix cut-and-paste error in upb_MiniTable_Link()

PiperOrigin-RevId: 525856199
pull/13171/head
Eric Salo 2 years ago committed by Copybara-Service
parent 0fa12dce2a
commit 70b92e6cd1
  1. 2
      upb/mini_table/decode.c

@ -1116,7 +1116,7 @@ bool upb_MiniTable_Link(upb_MiniTable* mt, const upb_MiniTable** sub_tables,
upb_MiniTableField* f = (upb_MiniTableField*)&mt->fields[i]; upb_MiniTableField* f = (upb_MiniTableField*)&mt->fields[i];
if (upb_MiniTableField_CType(f) == kUpb_CType_Enum) { if (upb_MiniTableField_CType(f) == kUpb_CType_Enum) {
const upb_MiniTableEnum* sub = sub_enums[enum_count++]; const upb_MiniTableEnum* sub = sub_enums[enum_count++];
if (enum_count > sub_table_count) return false; if (enum_count > sub_enum_count) return false;
if (sub != NULL) { if (sub != NULL) {
if (!upb_MiniTable_SetSubEnum(mt, f, sub)) return false; if (!upb_MiniTable_SetSubEnum(mt, f, sub)) return false;
} }

Loading…
Cancel
Save