From d8b215486245e84e33283b6047fb253bbb418e00 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Thu, 17 Feb 2011 23:07:17 -0800 Subject: 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. --- src/upb_def.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/upb_def.c') 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); -- cgit v1.2.3