Skip to content

Commit

Permalink
Fix luac link
Browse files Browse the repository at this point in the history
TODO: generate patch file with official lua-5.4.4
  • Loading branch information
halx99 committed Feb 18, 2022
1 parent 67c6bce commit 06479f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion thirdparty/lua/plainlua/lmem.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ LUAI_FUNC void *luaM_realloc_ (lua_State *L, void *block, size_t oldsize,
size_t size);
LUAI_FUNC void *luaM_saferealloc_ (lua_State *L, void *block, size_t oldsize,
size_t size);
LUAI_FUNC void luaM_free_ (lua_State *L, void *block, size_t osize);
LUALIB_API void luaM_free_ (lua_State *L, void *block, size_t osize);
LUAI_FUNC void *luaM_growaux_ (lua_State *L, void *block, int nelems,
int *size, int size_elem, int limit,
const char *what);
Expand Down
4 changes: 2 additions & 2 deletions thirdparty/lua/plainlua/luac.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,9 +350,9 @@ static void PrintCode(const Proto* f)
int sc=GETARG_sC(i);
int sbx=GETARG_sBx(i);
int isk=GETARG_k(i);
int line=luaG_getfuncline(f,pc);
//int line=luaG_getfuncline(f,pc);
printf("\t%d\t",pc+1);
if (line>0) printf("[%d]\t",line); else printf("[-]\t");
//if (line>0) printf("[%d]\t",line); else printf("[-]\t");
printf("%-9s\t",opnames[o]);
switch (o)
{
Expand Down

0 comments on commit 06479f7

Please sign in to comment.