Skip to content

Commit

Permalink
Auto-generate files after cl/632314763
Browse files Browse the repository at this point in the history
  • Loading branch information
protobuf-team-bot committed May 10, 2024
1 parent d071c60 commit bc80135
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions php/ext/google/protobuf/php-upb.c
Original file line number Diff line number Diff line change
Expand Up @@ -7305,12 +7305,12 @@ bool upb_MiniTable_SetSubMessage(upb_MiniTable* table,
return false;
}

upb_MiniTableSub* table_sub =
(void*)&table->UPB_PRIVATE(subs)[field->UPB_PRIVATE(submsg_index)];
int idx = field->UPB_PRIVATE(submsg_index);
upb_MiniTableSub* table_subs = (void*)table->UPB_PRIVATE(subs);
// TODO: Add this assert back once YouTube is updated to not call
// this function repeatedly.
// UPB_ASSERT(UPB_PRIVATE(_upb_MiniTable_IsEmpty)(table_sub->submsg));
*table_sub = upb_MiniTableSub_FromMessage(sub);
table_subs[idx] = upb_MiniTableSub_FromMessage(sub);
return true;
}

Expand Down
6 changes: 3 additions & 3 deletions ruby/ext/google/protobuf_c/ruby-upb.c
Original file line number Diff line number Diff line change
Expand Up @@ -6797,12 +6797,12 @@ bool upb_MiniTable_SetSubMessage(upb_MiniTable* table,
return false;
}

upb_MiniTableSub* table_sub =
(void*)&table->UPB_PRIVATE(subs)[field->UPB_PRIVATE(submsg_index)];
int idx = field->UPB_PRIVATE(submsg_index);
upb_MiniTableSub* table_subs = (void*)table->UPB_PRIVATE(subs);
// TODO: Add this assert back once YouTube is updated to not call
// this function repeatedly.
// UPB_ASSERT(UPB_PRIVATE(_upb_MiniTable_IsEmpty)(table_sub->submsg));
*table_sub = upb_MiniTableSub_FromMessage(sub);
table_subs[idx] = upb_MiniTableSub_FromMessage(sub);
return true;
}

Expand Down

0 comments on commit bc80135

Please sign in to comment.