upb icon indicating copy to clipboard operation
upb copied to clipboard

Lua binding compatibility for lua 5.3+

Open owent opened this issue 3 years ago • 0 comments

  1. luaL_checkint is replaced by luaL_checkinteger and is removed from lua 5.3
  2. lua_isinteger is already defined in lua 5.3+
  3. else if (isprint(ch)) in upb/bindings/lua/upbc.cc is UB when ch is negative, and will crash when compiled by MSVC.

owent avatar Aug 12 '22 03:08 owent