lua

A copy of the Lua development repository
Log | Files | Refs | README

commit dad85e41311646e37d995d677156d6b5daeff329
parent b029e7ea2070b834e1061492367faa11a1d54e3c
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Thu,  1 Jun 2017 17:23:00 -0300

macro 'setobj2t' may not be an expression

Diffstat:
Mlvm.h | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lvm.h b/lvm.h @@ -1,5 +1,5 @@ /* -** $Id: lvm.h,v 2.41 2016/12/22 13:08:50 roberto Exp roberto $ +** $Id: lvm.h,v 2.42 2017/05/11 18:57:46 roberto Exp roberto $ ** Lua virtual machine ** See Copyright Notice in lua.h */ @@ -79,7 +79,8 @@ ** 'slot' points to the place to put the value. */ #define luaV_finishfastset(L,t,slot,v) \ - (setobj2t(L, cast(TValue *,slot), v), luaC_barrierback(L, hvalue(t), v)) + { setobj2t(L, cast(TValue *,slot), v); \ + luaC_barrierback(L, hvalue(t), v); }