Skip to content

Commit 46f9e29

Browse files
Fix UPB fast table build.
PiperOrigin-RevId: 723552474
1 parent b968d0d commit 46f9e29

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

upb/mini_table/internal/message.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ struct upb_MiniTable {
6464
const char* UPB_PRIVATE(full_name);
6565
#endif
6666

67-
#ifdef UPB_FASTTABLE_ENABLED
67+
#ifdef UPB_FASTTABLE
6868
// To statically initialize the tables of variable length, we need a flexible
6969
// array member, and we need to compile in gnu99 mode (constant initialization
7070
// of flexible array members is a GNU extension, not in C99 unfortunately.

upb/wire/internal/decode_fast.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -914,8 +914,8 @@ const char* fastdecode_tosubmsg(upb_EpsCopyInputStream* e, const char* ptr,
914914
upb_Message** dst; \
915915
uint32_t submsg_idx = (data >> 16) & 0xff; \
916916
const upb_MiniTable* tablep = decode_totablep(table); \
917-
const upb_MiniTable* subtablep = upb_MiniTableSub_Message( \
918-
*UPB_PRIVATE(_upb_MiniTable_GetSubByIndex)(tablep, submsg_idx)); \
917+
const upb_MiniTable* subtablep = \
918+
UPB_PRIVATE(_upb_MiniTable_GetSubTableByIndex)(tablep, submsg_idx); \
919919
fastdecode_submsgdata submsg = {decode_totable(subtablep)}; \
920920
fastdecode_arr farr; \
921921
\

0 commit comments

Comments
 (0)