diff options
Diffstat (limited to 'llex.c')
-rw-r--r-- | llex.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llex.c,v 2.56 2011/08/09 20:58:29 roberto Exp roberto $ | 2 | ** $Id: llex.c,v 2.57 2011/08/11 17:06:12 roberto Exp roberto $ |
3 | ** Lexical Analyzer | 3 | ** Lexical Analyzer |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -128,6 +128,8 @@ TString *luaX_newstring (LexState *ls, const char *str, size_t l) { | |||
128 | setsvalue2s(L, L->top++, ts); /* temporarily anchor it in stack */ | 128 | setsvalue2s(L, L->top++, ts); /* temporarily anchor it in stack */ |
129 | o = luaH_set(L, ls->fs->h, L->top - 1); | 129 | o = luaH_set(L, ls->fs->h, L->top - 1); |
130 | if (ttisnil(o)) { /* not in use yet? (see 'addK') */ | 130 | if (ttisnil(o)) { /* not in use yet? (see 'addK') */ |
131 | /* boolean value does not need GC barrier; | ||
132 | table has no metatable, so it does not need to invalidate cache */ | ||
131 | setbvalue(o, 1); /* t[string] = true */ | 133 | setbvalue(o, 1); /* t[string] = true */ |
132 | luaC_checkGC(L); | 134 | luaC_checkGC(L); |
133 | } | 135 | } |