From 1080117f2b64a7a9f00fca65365c04762c2e915b Mon Sep 17 00:00:00 2001 From: Bo Yang Date: Thu, 14 Jun 2018 20:03:20 +0000 Subject: Revert "Prepare upb_value for encoding/decoding map." This reverts commit f30dd0ff0cead9bb1f8f3b1b295392d75705486b. --- upb/bindings/lua/upb/table.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'upb/bindings/lua') diff --git a/upb/bindings/lua/upb/table.c b/upb/bindings/lua/upb/table.c index 9692df4..79120c7 100644 --- a/upb/bindings/lua/upb/table.c +++ b/upb/bindings/lua/upb/table.c @@ -33,13 +33,13 @@ static void lupbtable_setnum(lua_State *L, int tab, const char *key, static void lupbtable_pushval(lua_State *L, upb_tabval val, upb_ctype_t ctype) { switch (ctype) { case UPB_CTYPE_INT32: - lua_pushnumber(L, upb_msgval_getint32(val)); + lua_pushnumber(L, val.val); break; case UPB_CTYPE_PTR: - lupb_def_pushwrapper(L, upb_msgval_getptr(val), NULL); + lupb_def_pushwrapper(L, (void*)val.val, NULL); break; case UPB_CTYPE_CSTR: - lua_pushstring(L, upb_msgval_getcstr(val)); + lua_pushstring(L, (const char*)val.val); break; default: luaL_error(L, "Unexpected type: %d", ctype); -- cgit v1.2.3