Change parameter type from enum opcode to int.

If the compiler elects to represent enum E as a char rather than an int
(per 6.7.2.2p4), the call to va_start() will have undefined behavior.
pull/13171/head
Bo Yang 8 years ago
parent ee7b049d19
commit 1e1c54f772
  1. 2
      upb/pb/compile_decoder.c

@ -267,7 +267,7 @@ static void put32(compiler *c, uint32_t v) {
*c->pc++ = v;
}
static void putop(compiler *c, opcode op, ...) {
static void putop(compiler *c, int op, ...) {
va_list ap;
va_start(ap, op);

Loading…
Cancel
Save