diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-05-05 13:16:33 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-05-05 13:16:33 -0300 |
commit | 81952e6884d7bff8d11282a63580e343bbbbc79a (patch) | |
tree | e297b22bbba8343fbbb433b0fd7e0414a2e169af /lvm.c | |
parent | 25b4e35ee894f6075efff93e39cd1e3ec220f7cc (diff) | |
download | lua-81952e6884d7bff8d11282a63580e343bbbbc79a.tar.gz lua-81952e6884d7bff8d11282a63580e343bbbbc79a.tar.bz2 lua-81952e6884d7bff8d11282a63580e343bbbbc79a.zip |
avoid using expression as argument to unsafe macro 'l_isfalse'
Diffstat (limited to '')
-rw-r--r-- | lvm.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.c,v 2.135 2011/04/18 19:48:53 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 2.136 2011/04/19 16:22:13 roberto Exp roberto $ |
3 | ** Lua virtual machine | 3 | ** Lua virtual machine |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -616,7 +616,8 @@ void luaV_execute (lua_State *L) { | |||
616 | } | 616 | } |
617 | ) | 617 | ) |
618 | vmcase(OP_NOT, | 618 | vmcase(OP_NOT, |
619 | int res = l_isfalse(RB(i)); /* next assignment may change this value */ | 619 | TValue *rb = RB(i); |
620 | int res = l_isfalse(rb); /* next assignment may change this value */ | ||
620 | setbvalue(ra, res); | 621 | setbvalue(ra, res); |
621 | ) | 622 | ) |
622 | vmcase(OP_LEN, | 623 | vmcase(OP_LEN, |