From 330e51bed3159aa83dcc9cc559c22e7d84d37604 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 10 May 2000 13:33:20 -0300 Subject: string hash uses one single hash table --- lparser.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lparser.c') diff --git a/lparser.c b/lparser.c index 0c6878a1..42cee394 100644 --- a/lparser.c +++ b/lparser.c @@ -1,5 +1,5 @@ /* -** $Id: lparser.c,v 1.83 2000/04/27 17:39:56 roberto Exp roberto $ +** $Id: lparser.c,v 1.84 2000/05/08 18:46:34 roberto Exp roberto $ ** LL(1) Parser and code generator for Lua ** See Copyright Notice in lua.h */ @@ -139,13 +139,13 @@ static void check_END (LexState *ls, int who, int where) { static int string_constant (FuncState *fs, TString *s) { Proto *f = fs->f; - int c = s->constindex; + int c = s->u.s.constindex; if (c >= f->nkstr || f->kstr[c] != s) { luaM_growvector(fs->L, f->kstr, f->nkstr, 1, TString *, constantEM, MAXARG_U); c = f->nkstr++; f->kstr[c] = s; - s->constindex = c; /* hint for next time */ + s->u.s.constindex = c; /* hint for next time */ } return c; } -- cgit v1.2.3-55-g6feb