diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2018-06-14 13:16:09 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-14 13:16:09 -0700 |
commit | fa99d854f668c6fd453c474a95772dc856f2dd33 (patch) | |
tree | a7a59c1c0831c0a76a35762f1aedfc646fb58732 /upb/bindings | |
parent | d73b12ed3c475aca7fa306d739df5ff4c6728a32 (diff) | |
parent | 1080117f2b64a7a9f00fca65365c04762c2e915b (diff) |
Merge pull request #110 from TeBoring/upb-revert
Revert "Prepare upb_value for encoding/decoding map."
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); |