core regex: use backward compatible lua_newuserdata

This commit is contained in:
jgmdev 2022-12-21 00:54:12 -04:00
parent 97bfe503a0
commit 0ab7fe9311
1 changed files with 1 additions and 1 deletions

View File

@ -238,7 +238,7 @@ static int f_pcre_gmatch(lua_State *L) {
lua_settop(L, 2);
RegexState *state;
state = (RegexState*)lua_newuserdatauv(L, sizeof(RegexState), 0);
state = (RegexState*)lua_newuserdata(L, sizeof(RegexState));
state->re = re;
state->match_data = pcre2_match_data_create_from_pattern(re, NULL);