aboutsummaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
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 2a45dc7e..efddc393 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.c,v 2.183 2014/08/01 17:33:08 roberto Exp roberto $ 2** $Id: ltests.c,v 2.184 2014/09/01 17:58:55 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*/
@@ -218,7 +218,7 @@ static void checkvalref (global_State *g, GCObject *f, const TValue *t) {
218 218
219 219
220static void checktable (global_State *g, Table *h) { 220static void checktable (global_State *g, Table *h) {
221 int i; 221 unsigned int i;
222 Node *n, *limit = gnode(h, sizenode(h)); 222 Node *n, *limit = gnode(h, sizenode(h));
223 GCObject *hgc = obj2gco(h); 223 GCObject *hgc = obj2gco(h);
224 checkobjref(g, hgc, h->metatable); 224 checkobjref(g, hgc, h->metatable);
@@ -667,7 +667,7 @@ static int table_query (lua_State *L) {
667 lua_pushinteger(L, luaH_isdummy(t->node) ? 0 : sizenode(t)); 667 lua_pushinteger(L, luaH_isdummy(t->node) ? 0 : sizenode(t));
668 lua_pushinteger(L, t->lastfree - t->node); 668 lua_pushinteger(L, t->lastfree - t->node);
669 } 669 }
670 else if (i < t->sizearray) { 670 else if ((unsigned int)i < t->sizearray) {
671 lua_pushinteger(L, i); 671 lua_pushinteger(L, i);
672 pushobject(L, &t->array[i]); 672 pushobject(L, &t->array[i]);
673 lua_pushnil(L); 673 lua_pushnil(L);