Fix clang-tidy function 'upb_encode_ex' has a definition with different parameter names

pull/13171/head
Esun Kim 4 years ago
parent 60607da72e
commit 38b4beed6b
  1. 4
      upb/encode.c

@ -444,7 +444,7 @@ static void encode_message(upb_encstate *e, const char *msg,
*size = (e->limit - e->ptr) - pre_len; *size = (e->limit - e->ptr) - pre_len;
} }
char *upb_encode_ex(const void *msg, const upb_msglayout *m, int options, char *upb_encode_ex(const void *msg, const upb_msglayout *l, int options,
upb_arena *arena, size_t *size) { upb_arena *arena, size_t *size) {
upb_encstate e; upb_encstate e;
unsigned depth = (unsigned)options >> 16; unsigned depth = (unsigned)options >> 16;
@ -462,7 +462,7 @@ char *upb_encode_ex(const void *msg, const upb_msglayout *m, int options,
*size = 0; *size = 0;
ret = NULL; ret = NULL;
} else { } else {
encode_message(&e, msg, m, size); encode_message(&e, msg, l, size);
*size = e.limit - e.ptr; *size = e.limit - e.ptr;
if (*size == 0) { if (*size == 0) {
static char ch; static char ch;

Loading…
Cancel
Save