diff options
author | Bo Yang <teboring@google.com> | 2018-06-14 20:03:20 +0000 |
---|---|---|
committer | Bo Yang <teboring@google.com> | 2018-06-14 20:03:20 +0000 |
commit | 1080117f2b64a7a9f00fca65365c04762c2e915b (patch) | |
tree | a7a59c1c0831c0a76a35762f1aedfc646fb58732 /upb/bindings | |
parent | d73b12ed3c475aca7fa306d739df5ff4c6728a32 (diff) |
Revert "Prepare upb_value for encoding/decoding map."
This reverts commit f30dd0ff0cead9bb1f8f3b1b295392d75705486b.
Diffstat (limited to 'upb/bindings')
-rw-r--r-- | upb/bindings/lua/upb/table.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); |