aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-05-14 15:32:30 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-05-14 15:32:30 -0300
commite3b9569e046f679d142cfdfca544cf1a58e80149 (patch)
tree674246400c53a352926e180dc849ea5728e966c8 /lapi.c
parent8b66040e34bb0890bd2627247579a5cf182108d1 (diff)
downloadlua-e3b9569e046f679d142cfdfca544cf1a58e80149.tar.gz
lua-e3b9569e046f679d142cfdfca544cf1a58e80149.tar.bz2
lua-e3b9569e046f679d142cfdfca544cf1a58e80149.zip
function 'reverse' uses appropriate variants of 'setobj' for better
documentation
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lapi.c b/lapi.c
index 319d1c68..a1033587 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 2.210 2014/05/13 19:40:28 roberto Exp roberto $ 2** $Id: lapi.c,v 2.211 2014/05/14 14:20:17 roberto Exp roberto $
3** Lua API 3** Lua API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -189,8 +189,8 @@ static void reverse (lua_State *L, StkId from, StkId to) {
189 for (; from < to; from++, to--) { 189 for (; from < to; from++, to--) {
190 TValue temp; 190 TValue temp;
191 setobj(L, &temp, from); 191 setobj(L, &temp, from);
192 setobj(L, from, to); 192 setobjs2s(L, from, to);
193 setobj(L, to, &temp); 193 setobj2s(L, to, &temp);
194 } 194 }
195} 195}
196 196