mirror of https://github.com/rusefi/lua.git
avoid using expression as argument to unsafe macro 'l_isfalse'
This commit is contained in:
parent
25b4e35ee8
commit
81952e6884
5
lvm.c
5
lvm.c
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
** $Id: lvm.c,v 2.135 2011/04/18 19:48:53 roberto Exp roberto $
|
** $Id: lvm.c,v 2.136 2011/04/19 16:22:13 roberto Exp roberto $
|
||||||
** Lua virtual machine
|
** Lua virtual machine
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
|
@ -616,7 +616,8 @@ void luaV_execute (lua_State *L) {
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
vmcase(OP_NOT,
|
vmcase(OP_NOT,
|
||||||
int res = l_isfalse(RB(i)); /* next assignment may change this value */
|
TValue *rb = RB(i);
|
||||||
|
int res = l_isfalse(rb); /* next assignment may change this value */
|
||||||
setbvalue(ra, res);
|
setbvalue(ra, res);
|
||||||
)
|
)
|
||||||
vmcase(OP_LEN,
|
vmcase(OP_LEN,
|
||||||
|
|
Loading…
Reference in New Issue