aboutsummaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-01-13 18:10:50 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-01-13 18:10:50 -0300
commit8eb0abc9db4d47db5192bed18565e3d1aa53566d (patch)
tree2a8509c2fb739bd57274a4b12f532e3f5418dcb2 /ltests.c
parentd862da6d04111ce7e5b225040fbe7e526761f478 (diff)
downloadlua-8eb0abc9db4d47db5192bed18565e3d1aa53566d.tar.gz
lua-8eb0abc9db4d47db5192bed18565e3d1aa53566d.tar.bz2
lua-8eb0abc9db4d47db5192bed18565e3d1aa53566d.zip
Removed uses of LUA_NUMTAGS
That constant was already deprecated (see commit 6aabf4b15e7).
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;