Skip to content

Commit d445ce8

Browse files
brammooldouglasdrumond
authored andcommitted
updated for version 7.4.619
Problem: luaV_setref() not returning the correct value. Solution: Return one.
1 parent 174122a commit d445ce8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/if_lua.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1517,7 +1517,7 @@ luaV_luaeval (lua_State *L)
15171517
return 0;
15181518
}
15191519
luaV_totypval(L, -1, rettv);
1520-
return 0;
1520+
return 1;
15211521
}
15221522

15231523
static int
@@ -1530,7 +1530,8 @@ luaV_setref (lua_State *L)
15301530
luaV_getfield(L, LUAVIM_LIST);
15311531
luaV_getfield(L, LUAVIM_DICT);
15321532
lua_pushnil(L);
1533-
while (!abort && lua_next(L, lua_upvalueindex(1)) != 0) /* traverse cache table */
1533+
/* traverse cache table */
1534+
while (!abort && lua_next(L, lua_upvalueindex(1)) != 0)
15341535
{
15351536
lua_getmetatable(L, -1);
15361537
if (lua_rawequal(L, -1, 2)) /* list? */

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ static char *(features[]) =
741741

742742
static int included_patches[] =
743743
{ /* Add new patch number below this line */
744+
/**/
745+
619,
744746
/**/
745747
618,
746748
/**/

0 commit comments

Comments
 (0)