From 7e2015a46df7976bddee313b994742e49e420714 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 16 Jan 2015 14:54:37 -0200 Subject: size of short strings stored in a single byte, to reduce the size of struct 'TString' --- ltests.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ltests.c') diff --git a/ltests.c b/ltests.c index 85a7c742..dadcad8d 100644 --- a/ltests.c +++ b/ltests.c @@ -1,5 +1,5 @@ /* -** $Id: ltests.c,v 2.200 2014/12/10 11:30:51 roberto Exp roberto $ +** $Id: ltests.c,v 2.201 2014/12/18 12:13:42 roberto Exp roberto $ ** Internal Module for Debugging of the Lua Implementation ** See Copyright Notice in lua.h */ @@ -724,7 +724,7 @@ static int string_query (lua_State *L) { else if (s < tb->size) { TString *ts; int n = 0; - for (ts = tb->hash[s]; ts != NULL; ts = ts->hnext) { + for (ts = tb->hash[s]; ts != NULL; ts = ts->u.hnext) { setsvalue2s(L, L->top, ts); api_incr_top(L); n++; -- cgit v1.2.3-55-g6feb