projects/aports·blob master · refs

13 lines · 541 B

1diff --git a/lbitlib.c b/lbitlib.c
2index 24ceac6..fbbcc58 100644
3--- a/lbitlib.c
4+++ b/lbitlib.c
5@@ -15,7 +15,7 @@
6 /********************************************************************/
7 #if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM == 501
8 #include "compat-5.2.c"
9-#elif defined(LUA_VERSION_NUM) && LUA_VERSION_NUM == 503
10+#elif defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 503
11 #define luaL_checkunsigned(L, n) ((lua_Unsigned)luaL_checkinteger((L), (n)))
12 #define lua_pushunsigned(L, n) (lua_pushinteger(L, (lua_Integer)(n)))
13 #endif