Skip to content

Commit

Permalink
Fix size of userdata metatable array (#1366)
Browse files Browse the repository at this point in the history
Fix udatamt array to use the correct limit for tagged userdata.
  • Loading branch information
petrihakkinen authored Aug 14, 2024
1 parent bfad1fa commit 9dc299e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion VM/src/lstate.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 9dc299e

Please sign in to comment.