summaryrefslogtreecommitdiff
path: root/upb/bindings
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2014-12-09 14:05:41 -0800
committerJoshua Haberman <jhaberman@gmail.com>2014-12-09 14:05:41 -0800
commitbf51ef86b448138a281e796df5bdfa8fa118524d (patch)
treece16586d7f0a8e5c87252727b4b3745d1a48a4eb /upb/bindings
parente257bd978d5e6278e7b188d543858852c0c4d856 (diff)
parent8f8113b4fff748b57b0ff2f1a301e86b4703be84 (diff)
Merge pull request #7 from cfallin/master
JSON test, symbolic enum names in JSON, and a few improvements.
Diffstat (limited to 'upb/bindings')
-rw-r--r--upb/bindings/lua/upb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/upb/bindings/lua/upb.c b/upb/bindings/lua/upb.c
index 2bd78af..17fc0a8 100644
--- a/upb/bindings/lua/upb.c
+++ b/upb/bindings/lua/upb.c
@@ -1032,7 +1032,7 @@ static int lupb_enumdef_value(lua_State *L) {
} else if (type == LUA_TSTRING) {
const char *key = lua_tostring(L, 2);
int32_t num;
- if (upb_enumdef_ntoi(e, key, &num)) {
+ if (upb_enumdef_ntoiz(e, key, &num)) {
lua_pushinteger(L, num);
} else {
lua_pushnil(L);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback