Make regex API return integers

This commit is contained in:
Guldoman 2022-05-28 01:20:41 +02:00
parent 807d7a07fe
commit 74f7389cac
No known key found for this signature in database
GPG Key ID: EA928C8BDA1A8825
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ static int f_pcre_match(lua_State *L) {
return 0;
}
for (int i = 0; i < rc*2; i++)
lua_pushnumber(L, ovector[i]+offset+1);
lua_pushinteger(L, ovector[i]+offset+1);
pcre2_match_data_free(md);
return rc*2;
}