aboutsummaryrefslogtreecommitdiff
path: root/lcode.c
diff options
context:
space:
mode:
Diffstat (limited to 'lcode.c')
-rw-r--r--lcode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lcode.c b/lcode.c
index 2658e602..8c43084e 100644
--- a/lcode.c
+++ b/lcode.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lcode.c,v 1.68 2001/04/23 16:35:45 roberto Exp roberto $ 2** $Id: lcode.c,v 1.69 2001/06/05 18:17:01 roberto Exp roberto $
3** Code generator for Lua 3** Code generator for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -226,12 +226,12 @@ static int addk (FuncState *fs, TObject *k) {
226 226
227int luaK_stringk (FuncState *fs, TString *s) { 227int luaK_stringk (FuncState *fs, TString *s) {
228 Proto *f = fs->f; 228 Proto *f = fs->f;
229 int c = s->u.s.constindex; 229 int c = s->constindex;
230 if (c >= fs->nk || ttype(&f->k[c]) != LUA_TSTRING || tsvalue(&f->k[c]) != s) { 230 if (c >= fs->nk || ttype(&f->k[c]) != LUA_TSTRING || tsvalue(&f->k[c]) != s) {
231 TObject o; 231 TObject o;
232 setsvalue(&o, s); 232 setsvalue(&o, s);
233 c = addk(fs, &o); 233 c = addk(fs, &o);
234 s->u.s.constindex = c; /* hint for next time */ 234 s->constindex = c; /* hint for next time */
235 } 235 }
236 return c; 236 return c;
237} 237}