Fix big endian handling of enums

Previously using an enum for a field on big-endian process such as the s390x would fail to decode properly. We need to munge it in the correct byte order before decoding it.

Part of https://github.com/protocolbuffers/upb/pull/435. This version of upb does not appear to handle packed enums.

Edited by Stan Hu

Merge request reports

Loading