From f635ccc0c219dfd3f496373d46c09dc9df1de3af Mon Sep 17 00:00:00 2001 From: anon Date: Fri, 25 Aug 2023 21:25:24 +0200 Subject: [PATCH] fixed retarded loop --- source/regex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/regex.c b/source/regex.c index 39d5c95..ece14de 100644 --- a/source/regex.c +++ b/source/regex.c @@ -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(®ex->catch_table, i); if (offshoot->in == *state) { *state = offshoot->to;