diff options
author | Joshua Haberman <joshua@reverberate.org> | 2009-07-02 20:19:06 -0700 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2009-07-02 20:19:06 -0700 |
commit | b0ef7f0b6778addc91ce04ca1d6e835d44387c83 (patch) | |
tree | b67f490bd178d53c5fa2bc550fef77b0062efafb /upb_parse.h | |
parent | b8481e0e55aebad1d9ffa0f3845609f929bca02f (diff) |
More fixes, completions, still doesn't quite work.
Diffstat (limited to 'upb_parse.h')
-rw-r--r-- | upb_parse.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/upb_parse.h b/upb_parse.h index 83104f1..182cb9e 100644 --- a/upb_parse.h +++ b/upb_parse.h @@ -89,7 +89,7 @@ upb_status_t upb_parse(struct upb_parse_state *s, void *buf, size_t len, extern upb_wire_type_t upb_expected_wire_types[]; /* Returns true if wt is the correct on-the-wire type for ft. */ INLINE bool upb_check_type(upb_wire_type_t wt, upb_field_type_t ft) { - return upb_expected_wire_types[ft] == wt; + return upb_type_info[ft].expected_wire_type == wt; } /* Data-consuming functions (to be called from value cb). *********************/ |