From 81952e6884d7bff8d11282a63580e343bbbbc79a Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 5 May 2011 13:16:33 -0300 Subject: [PATCH] avoid using expression as argument to unsafe macro 'l_isfalse' --- lvm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lvm.c b/lvm.c index decd2219..02d17fad 100644 --- a/lvm.c +++ b/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 ** See Copyright Notice in lua.h */ @@ -616,7 +616,8 @@ void luaV_execute (lua_State *L) { } ) 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); ) vmcase(OP_LEN,