summaryrefslogtreecommitdiff
path: root/lobject.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-05-27 14:11:27 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-05-27 14:11:27 -0300
commit57f8414de1968b6f9f212140f2da14cba3b6dacb (patch)
treef7ee1e6e09a272046f2897bd12d77fb1d1548136 /lobject.c
parent139d562861a939ef0a8456c84874b783a7861a24 (diff)
downloadlua-57f8414de1968b6f9f212140f2da14cba3b6dacb.tar.gz
lua-57f8414de1968b6f9f212140f2da14cba3b6dacb.tar.bz2
lua-57f8414de1968b6f9f212140f2da14cba3b6dacb.zip
small bug in 'luaV_concat' (L->top was left incorrect in some cases)
Diffstat (limited to 'lobject.c')
-rw-r--r--lobject.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lobject.c b/lobject.c
index bcd62086..f02b2ce0 100644
--- a/lobject.c
+++ b/lobject.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.c,v 2.28 2008/01/30 18:05:23 roberto Exp roberto $ 2** $Id: lobject.c,v 2.29 2009/02/19 17:18:25 roberto Exp $
3** Some generic functions over Lua objects 3** Some generic functions over Lua objects
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -162,8 +162,7 @@ const char *luaO_pushvfstring (lua_State *L, const char *fmt, va_list argp) {
162 fmt = e+2; 162 fmt = e+2;
163 } 163 }
164 pushstr(L, fmt); 164 pushstr(L, fmt);
165 luaV_concat(L, n+1, cast_int(L->top - L->base) - 1); 165 luaV_concat(L, n+1);
166 L->top -= n;
167 return svalue(L->top - 1); 166 return svalue(L->top - 1);
168} 167}
169 168