From 9dc299ecafd2178e7eff97dcb2437f2568e16d3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petri=20H=C3=A4kkinen?= Date: Wed, 14 Aug 2024 16:00:21 +0300 Subject: [PATCH] Fix size of userdata metatable array (#1366) Fix udatamt array to use the correct limit for tagged userdata. --- VM/src/lstate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VM/src/lstate.h b/VM/src/lstate.h index f8caa69b..3f4f9425 100644 --- a/VM/src/lstate.h +++ b/VM/src/lstate.h @@ -217,7 +217,7 @@ typedef struct global_State lua_ExecutionCallbacks ecb; void (*udatagc[LUA_UTAG_LIMIT])(lua_State*, void*); // for each userdata tag, a gc callback to be called immediately before freeing memory - Table* udatamt[LUA_LUTAG_LIMIT]; // metatables for tagged userdata + Table* udatamt[LUA_UTAG_LIMIT]; // metatables for tagged userdata TString* lightuserdataname[LUA_LUTAG_LIMIT]; // names for tagged lightuserdata