summaryrefslogtreecommitdiff
path: root/upb/bindings
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2018-06-14 13:16:09 -0700
committerGitHub <noreply@github.com>2018-06-14 13:16:09 -0700
commitfa99d854f668c6fd453c474a95772dc856f2dd33 (patch)
treea7a59c1c0831c0a76a35762f1aedfc646fb58732 /upb/bindings
parentd73b12ed3c475aca7fa306d739df5ff4c6728a32 (diff)
parent1080117f2b64a7a9f00fca65365c04762c2e915b (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.c6
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);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback