diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-01-10 15:41:50 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-01-10 15:41:50 -0200 |
| commit | 08496eea8b277d37c4de9cf75a011715ad6a4100 (patch) | |
| tree | 9c3eef538b85f79ece0a0993e4d99930be6f6039 /lvm.c | |
| parent | 4ff55457095728b95cc5dcdbab0bca7255bd5387 (diff) | |
| download | lua-08496eea8b277d37c4de9cf75a011715ad6a4100.tar.gz lua-08496eea8b277d37c4de9cf75a011715ad6a4100.tar.bz2 lua-08496eea8b277d37c4de9cf75a011715ad6a4100.zip | |
small changes in lstring
Diffstat (limited to 'lvm.c')
| -rw-r--r-- | lvm.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lvm.c,v 1.148 2000/12/04 18:33:40 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 1.149 2000/12/28 12:55:41 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 | */ |
| @@ -325,7 +325,7 @@ static void luaV_pack (lua_State *L, StkId firstelem) { | |||
| 325 | for (i=0; firstelem+i<L->top; i++) | 325 | for (i=0; firstelem+i<L->top; i++) |
| 326 | *luaH_setint(L, htab, i+1) = *(firstelem+i); | 326 | *luaH_setint(L, htab, i+1) = *(firstelem+i); |
| 327 | /* store counter in field `n' */ | 327 | /* store counter in field `n' */ |
| 328 | luaH_setstrnum(L, htab, luaS_new(L, "n"), i); | 328 | luaH_setstrnum(L, htab, luaS_newliteral(L, "n"), i); |
| 329 | L->top = firstelem; /* remove elements from the stack */ | 329 | L->top = firstelem; /* remove elements from the stack */ |
| 330 | ttype(L->top) = LUA_TTABLE; | 330 | ttype(L->top) = LUA_TTABLE; |
| 331 | hvalue(L->top) = htab; | 331 | hvalue(L->top) = htab; |
