aboutsummaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-06-15 17:36:57 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-06-15 17:36:57 -0300
commit8e586c13fcf3066886a7edd69011304eaad57a2b (patch)
tree417c2102ba8c4d693c49a2df839612d371eded50 /ltests.c
parenteadf2aaaffa7a35e7f67b150ce0d57f2c17b9231 (diff)
downloadlua-8e586c13fcf3066886a7edd69011304eaad57a2b.tar.gz
lua-8e586c13fcf3066886a7edd69011304eaad57a2b.tar.bz2
lua-8e586c13fcf3066886a7edd69011304eaad57a2b.zip
cleaner way to ensure alignment for strings and userdata
Diffstat (limited to 'ltests.c')
-rw-r--r--ltests.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ltests.c b/ltests.c
index b666a917..b78de996 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.c,v 1.81 2001/06/05 18:17:01 roberto Exp roberto $ 2** $Id: ltests.c,v 1.82 2001/06/06 18:00:19 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*/
@@ -290,7 +290,7 @@ static int mem_query (lua_State *L) {
290static int hash_query (lua_State *L) { 290static int hash_query (lua_State *L) {
291 if (lua_isnull(L, 2)) { 291 if (lua_isnull(L, 2)) {
292 luaL_arg_check(L, lua_tag(L, 1) == LUA_TSTRING, 1, l_s("string expected")); 292 luaL_arg_check(L, lua_tag(L, 1) == LUA_TSTRING, 1, l_s("string expected"));
293 lua_pushnumber(L, tsvalue(luaA_index(L, 1))->hash); 293 lua_pushnumber(L, tsvalue(luaA_index(L, 1))->tsv.hash);
294 } 294 }
295 else { 295 else {
296 Hash *t; 296 Hash *t;
@@ -349,7 +349,7 @@ static int string_query (lua_State *L) {
349 else if (s < tb->size) { 349 else if (s < tb->size) {
350 TString *ts; 350 TString *ts;
351 int n = 0; 351 int n = 0;
352 for (ts = tb->hash[s]; ts; ts = ts->nexthash) { 352 for (ts = tb->hash[s]; ts; ts = ts->tsv.nexthash) {
353 setsvalue(L->top, ts); 353 setsvalue(L->top, ts);
354 incr_top; 354 incr_top;
355 n++; 355 n++;