From 2449bac4ad5350eace47eba369dfa37f2fefebce Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Tue, 16 Apr 2024 14:45:56 -0700 Subject: [PATCH] Faster register clear --- src/modal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modal.c b/src/modal.c index e159e28..71e6569 100644 --- a/src/modal.c +++ b/src/modal.c @@ -91,7 +91,7 @@ match_rule(Rule *r, char *p) int i; char c, last = 0, *a = r->a, *b = p; if(rmax) { - for(i = 0; i <= rmax; i++) + for(i = rmin; i <= rmax; i++) regs[i] = 0; rmin = 0xff, rmax = 0x00; }