diff options
Diffstat (limited to 'ldo.c')
-rw-r--r-- | ldo.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldo.c,v 1.18 1997/12/22 20:57:18 roberto Exp roberto $ | 2 | ** $Id: ldo.c,v 1.19 1997/12/23 12:50:49 roberto Exp roberto $ |
3 | ** Stack and Call structure of Lua | 3 | ** Stack and Call structure of Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -96,9 +96,8 @@ void luaD_adjusttop (StkId newtop) | |||
96 | */ | 96 | */ |
97 | void luaD_openstack (int nelems) | 97 | void luaD_openstack (int nelems) |
98 | { | 98 | { |
99 | int i; | 99 | luaO_memup(L->stack.top-nelems+1, L->stack.top-nelems, |
100 | for (i=0; i<nelems; i++) | 100 | nelems*sizeof(TObject)); |
101 | *(L->stack.top-i) = *(L->stack.top-i-1); | ||
102 | incr_top; | 101 | incr_top; |
103 | } | 102 | } |
104 | 103 | ||