diff --git a/src/api/regex.c b/src/api/regex.c index 6a0aac7a..d23eaf71 100644 --- a/src/api/regex.c +++ b/src/api/regex.c @@ -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; }