Skip to content

Commit 86e6abb

Browse files
committed
Lua 5.4.8
1 parent 3576449 commit 86e6abb

Some content is hidden

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

60 files changed

+46
-23
lines changed

lua-5.4.7/lapi.c renamed to lua-5.4.8/lapi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1343,7 +1343,7 @@ void lua_warning (lua_State *L, const char *msg, int tocont) {
13431343
LUA_API void *lua_newuserdatauv (lua_State *L, size_t size, int nuvalue) {
13441344
Udata *u;
13451345
lua_lock(L);
1346-
api_check(L, 0 <= nuvalue && nuvalue < USHRT_MAX, "invalid value");
1346+
api_check(L, 0 <= nuvalue && nuvalue < SHRT_MAX, "invalid value");
13471347
u = luaS_newudata(L, size, nuvalue);
13481348
setuvalue(L, s2v(L->top.p), u);
13491349
api_incr_top(L);
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

lua-5.4.7/lcode.c renamed to lua-5.4.8/lcode.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
#define MAXREGS 255
3636

3737

38+
/* (note that expressions VJMP also have jumps.) */
3839
#define hasjumps(e) ((e)->t != (e)->f)
3940

4041

@@ -985,7 +986,7 @@ void luaK_exp2anyregup (FuncState *fs, expdesc *e) {
985986
** or it is a constant.
986987
*/
987988
void luaK_exp2val (FuncState *fs, expdesc *e) {
988-
if (hasjumps(e))
989+
if (e->k == VJMP || hasjumps(e))
989990
luaK_exp2anyreg(fs, e);
990991
else
991992
luaK_dischargevars(fs, e);
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)