aboutsummaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-01-16 14:54:37 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-01-16 14:54:37 -0200
commit7e2015a46df7976bddee313b994742e49e420714 (patch)
tree0b2db30f1214a478ccb3664d165c8a431f0d5850 /ltests.c
parent5b01cb39b5ec36c544152351c35c43149d9bbfec (diff)
downloadlua-7e2015a46df7976bddee313b994742e49e420714.tar.gz
lua-7e2015a46df7976bddee313b994742e49e420714.tar.bz2
lua-7e2015a46df7976bddee313b994742e49e420714.zip
size of short strings stored in a single byte, to reduce the size
of struct 'TString'
Diffstat (limited to 'ltests.c')
-rw-r--r--ltests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ltests.c b/ltests.c
index 85a7c742..dadcad8d 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.c,v 2.200 2014/12/10 11:30:51 roberto Exp roberto $ 2** $Id: ltests.c,v 2.201 2014/12/18 12:13:42 roberto Exp roberto $
3** Internal Module for Debugging of the Lua Implementation 3** Internal Module for Debugging of the Lua Implementation
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -724,7 +724,7 @@ static int string_query (lua_State *L) {
724 else if (s < tb->size) { 724 else if (s < tb->size) {
725 TString *ts; 725 TString *ts;
726 int n = 0; 726 int n = 0;
727 for (ts = tb->hash[s]; ts != NULL; ts = ts->hnext) { 727 for (ts = tb->hash[s]; ts != NULL; ts = ts->u.hnext) {
728 setsvalue2s(L, L->top, ts); 728 setsvalue2s(L, L->top, ts);
729 api_incr_top(L); 729 api_incr_top(L);
730 n++; 730 n++;