diff --git a/lbitlib.c b/lbitlib.c index 24ceac6..fbbcc58 100644 --- a/lbitlib.c +++ b/lbitlib.c @@ -15,7 +15,7 @@ /********************************************************************/ #if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM == 501 #include "compat-5.2.c" -#elif defined(LUA_VERSION_NUM) && LUA_VERSION_NUM == 503 +#elif defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 503 #define luaL_checkunsigned(L, n) ((lua_Unsigned)luaL_checkinteger((L), (n))) #define lua_pushunsigned(L, n) (lua_pushinteger(L, (lua_Integer)(n))) #endif