From b6ca2718c8e9fcb601054b76af96e22920a2070e Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Fri, 15 Jul 2011 16:44:03 -0700 Subject: Make Lua extension build again. --- upb/def.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'upb') diff --git a/upb/def.h b/upb/def.h index 4a7a017..91eb2ca 100644 --- a/upb/def.h +++ b/upb/def.h @@ -227,7 +227,7 @@ INLINE upb_fielddef *upb_msgdef_itof(upb_msgdef *m, uint32_t i) { return e ? e->f : NULL; } -INLINE upb_fielddef *upb_msgdef_ntof(upb_msgdef *m, char *name) { +INLINE upb_fielddef *upb_msgdef_ntof(upb_msgdef *m, const char *name) { upb_ntof_ent *e = (upb_ntof_ent*)upb_strtable_lookup(&m->ntof, name); return e ? e->f : NULL; } -- cgit v1.2.3