fixed retarded loop
This commit is contained in:
parent
0226488696
commit
f635ccc0c2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user