Commit 2cb4c7a2 by Thomas Moschny Committed by Stéphane Graber

Small fix for Lua 5.3 compatibility.

parent 0e4e95fd
......@@ -38,6 +38,10 @@
#define luaL_checkunsigned(L,n) luaL_checknumber(L,n)
#endif
#if LUA_VERSION_NUM >= 503
#define luaL_checkunsigned(L,n) ((lua_Unsigned)luaL_checkinteger(L,n))
#endif
#ifdef NO_CHECK_UDATA
#define checkudata(L,i,tname) lua_touserdata(L, i)
#else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment