aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lvm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lvm.c b/lvm.c
index e5148905..ed85e74c 100644
--- a/lvm.c
+++ b/lvm.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lvm.c,v 1.127 2000/08/14 14:05:06 roberto Exp roberto $ 2** $Id: lvm.c,v 1.128 2000/08/22 20:49:29 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*/
@@ -176,6 +176,7 @@ void luaV_getglobal (lua_State *L, TString *s, StkId top) {
176 if (ttype(im) == TAG_NIL) /* is there a tag method? */ 176 if (ttype(im) == TAG_NIL) /* is there a tag method? */
177 *top = *value; /* default behavior */ 177 *top = *value; /* default behavior */
178 else { /* tag method */ 178 else { /* tag method */
179 L->top = top;
179 luaD_checkstack(L, 3); 180 luaD_checkstack(L, 3);
180 *top = *im; 181 *top = *im;
181 ttype(top+1) = TAG_STRING; 182 ttype(top+1) = TAG_STRING;
@@ -203,6 +204,7 @@ void luaV_setglobal (lua_State *L, TString *s, StkId top) {
203 } 204 }
204 } 205 }
205 else { 206 else {
207 L->top = top;
206 luaD_checkstack(L, 3); 208 luaD_checkstack(L, 3);
207 *(top+2) = *(top-1); /* new value */ 209 *(top+2) = *(top-1); /* new value */
208 *(top+1) = *oldvalue; 210 *(top+1) = *oldvalue;