Skip to content

Commit

Permalink
set kUpb_EncodedValue_MaxField to its correct value
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 479655389
  • Loading branch information
ericsalo authored and copybara-github committed Oct 7, 2022
1 parent c172bfb commit 85f7d2d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion upb/mini_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ typedef enum {

enum {
kUpb_EncodedValue_MinField = ' ',
kUpb_EncodedValue_MaxField = 'K',
kUpb_EncodedValue_MaxField = 'I',
kUpb_EncodedValue_MinModifier = 'L',
kUpb_EncodedValue_MaxModifier = '[',
kUpb_EncodedValue_End = '^',
Expand Down Expand Up @@ -822,6 +822,9 @@ static const char* upb_MtDecoder_Parse(upb_MtDecoder* d, const char* ptr,
kUpb_EncodedValue_MaxSkip, &skip);
last_field_number += skip;
last_field_number--; // Next field seen will increment.
} else {
upb_MtDecoder_ErrorFormat(d, "Invalid char: %c", ch);
UPB_UNREACHABLE();
}
}

Expand Down

0 comments on commit 85f7d2d

Please sign in to comment.