aboutsummaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
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 cf9a8eaf..6eebc732 100644
--- a/ltests.c
+++ b/ltests.c
@@ -216,7 +216,7 @@ void *debug_realloc (void *ud, void *b, size_t oldsize, size_t size) {
216 mc->memlimit = limit ? strtoul(limit, NULL, 10) : ULONG_MAX; 216 mc->memlimit = limit ? strtoul(limit, NULL, 10) : ULONG_MAX;
217 } 217 }
218 if (block == NULL) { 218 if (block == NULL) {
219 type = (oldsize < LUA_NUMTAGS) ? oldsize : 0; 219 type = (oldsize < LUA_NUMTYPES) ? oldsize : 0;
220 oldsize = 0; 220 oldsize = 0;
221 } 221 }
222 else { 222 else {
@@ -856,7 +856,7 @@ static int mem_query (lua_State *L) {
856 else { 856 else {
857 const char *t = luaL_checkstring(L, 1); 857 const char *t = luaL_checkstring(L, 1);
858 int i; 858 int i;
859 for (i = LUA_NUMTAGS - 1; i >= 0; i--) { 859 for (i = LUA_NUMTYPES - 1; i >= 0; i--) {
860 if (strcmp(t, ttypename(i)) == 0) { 860 if (strcmp(t, ttypename(i)) == 0) {
861 lua_pushinteger(L, l_memcontrol.objcount[i]); 861 lua_pushinteger(L, l_memcontrol.objcount[i]);
862 return 1; 862 return 1;