lua

A copy of the Lua development repository
Log | Files | Refs | README

commit ea46b750dceec7f6ddd3ae48ace391d5a1fd705e
parent 92afcf2823e5dfbe9bb10b0ed62306b6015fcfb8
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Thu, 11 Aug 2011 14:05:48 -0300

comment

Diffstat:
Mllex.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/llex.c b/llex.c @@ -1,5 +1,5 @@ /* -** $Id: llex.c,v 2.55 2011/07/15 12:48:03 roberto Exp roberto $ +** $Id: llex.c,v 2.56 2011/08/09 20:58:29 roberto Exp roberto $ ** Lexical Analyzer ** See Copyright Notice in lua.h */ @@ -127,7 +127,7 @@ TString *luaX_newstring (LexState *ls, const char *str, size_t l) { TString *ts = luaS_newlstr(L, str, l); /* create new string */ setsvalue2s(L, L->top++, ts); /* temporarily anchor it in stack */ o = luaH_set(L, ls->fs->h, L->top - 1); - if (ttisnil(o)) { + if (ttisnil(o)) { /* not in use yet? (see 'addK') */ setbvalue(o, 1); /* t[string] = true */ luaC_checkGC(L); }