Skip to content

Commit c7b5015

Browse files
committed
update to lua 5.3, remove lua unsigned api
1 parent 4a2b253 commit c7b5015

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+6858
-4956
lines changed

3rd/lpeg/lptree.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ static int lp_choice (lua_State *L) {
524524
*/
525525
static int lp_star (lua_State *L) {
526526
int size1;
527-
int n = luaL_checkint(L, 2);
527+
int n = (int)luaL_checkinteger(L, 2);
528528
TTree *tree1 = gettree(L, 1, &size1);
529529
if (n >= 0) { /* seq tree1 (seq tree1 ... (seq tree1 (rep tree1))) */
530530
TTree *tree = newtree(L, (n + 1) * (size1 + 1));
@@ -747,7 +747,7 @@ static int lp_poscapture (lua_State *L) {
747747

748748

749749
static int lp_argcapture (lua_State *L) {
750-
int n = luaL_checkint(L, 1);
750+
int n = (int)luaL_checkinteger(L, 1);
751751
TTree *tree = newemptycap(L, Carg, 0);
752752
tree->key = n;
753753
luaL_argcheck(L, 0 < n && n <= SHRT_MAX, 1, "invalid argument index");

3rd/lpeg/lptypes.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
/*
3030
** compatibility with Lua 5.2
3131
*/
32-
#if (LUA_VERSION_NUM == 502)
32+
#if (LUA_VERSION_NUM >= 502)
3333

3434
#undef lua_equal
3535
#define lua_equal(L,idx1,idx2) lua_compare(L,(idx1),(idx2),LUA_OPEQ)

3rd/lua-int64/Makefile

-6
This file was deleted.

3rd/lua-int64/README

-2
This file was deleted.

3rd/lua-int64/int64.c

-317
This file was deleted.

3rd/lua-int64/test.lua

-17
This file was deleted.

0 commit comments

Comments
 (0)