fixed retarded loop

This commit is contained in:
anon 2023-08-25 21:25:24 +02:00
parent 0226488696
commit f635ccc0c2

View File

@ -314,7 +314,7 @@ static int compile_range(const char * const range,
static bool catch_(const regex_t * const regex,
int * const state) {
for (size_t i = 0; i < regex->catch_table.element_size; i++){
for (size_t i = 0; i < regex->catch_table.element_count; i++){
const offshoot_t * const offshoot = *(offshoot_t**)vector_get(&regex->catch_table, i);
if (offshoot->in == *state) {
*state = offshoot->to;