diff options
author | Joshua Haberman <joshua@reverberate.org> | 2011-02-17 23:07:17 -0800 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2011-02-17 23:07:17 -0800 |
commit | d8b215486245e84e33283b6047fb253bbb418e00 (patch) | |
tree | 4c07a4d3162a0390be0b55d619ddab0e7a6acb23 /src/upb_def.c | |
parent | f1e1cc4695b34b292454e903adbf09e66cf2e9d5 (diff) |
First version of an assembly language decoder.
It is slower than the C decoder for now because it
falls off the fast path too often. But it can
successfully decode varints, fixed32 and fixed64.
Diffstat (limited to 'src/upb_def.c')
-rw-r--r-- | src/upb_def.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/upb_def.c b/src/upb_def.c index 01143da..6a1e543 100644 --- a/src/upb_def.c +++ b/src/upb_def.c @@ -615,7 +615,7 @@ static upb_flow_t upb_fielddef_endmsg(void *_b) { // Field was successfully read, add it as a field of the msgdef. upb_msgdef *m = upb_defbuilder_top(b); - upb_itof_ent itof_ent = {0, upb_types[f->type].native_wire_type, f->type, f}; + upb_itof_ent itof_ent = {0, f->type, upb_types[f->type].native_wire_type, f}; upb_ntof_ent ntof_ent = {{f->name, 0}, f}; upb_inttable_insert(&m->itof, f->number, &itof_ent); upb_strtable_insert(&m->ntof, &ntof_ent.e); |