diff options
Diffstat (limited to 'upb/bindings')
-rw-r--r-- | upb/bindings/lua/upb.c | 2 |
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); |