From 4200a00c234411fe4800088d64b581357643b307 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Thu, 20 Dec 2012 16:14:05 -0700 Subject: [PATCH] regexec.c: Remove redundant calculation Commit 9a902117f5d8a3ebc669e3a90eeb7cee78286a33 introduced a redundancy. It calculates a value twice. --- regexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regexec.c b/regexec.c index bb0c198..d91afe3 100644 --- a/regexec.c +++ b/regexec.c @@ -6762,7 +6762,7 @@ S_regrepeat(pTHX_ const regexp *prog, char **startposp, const regnode *p, I32 ma && (scan_char_len = UTF8SKIP(scan)) <= STR_LEN(p) && memEQ(scan, STRING(p), scan_char_len)) { - scan += UTF8SKIP(scan); + scan += scan_char_len; hardcount++; } } -- 2.7.4