From: Karl Williamson Date: Thu, 20 Dec 2012 23:14:05 +0000 (-0700) Subject: regexec.c: Remove redundant calculation X-Git-Tag: upstream/5.20.0~4394 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4200a00c234411fe4800088d64b581357643b307;p=platform%2Fupstream%2Fperl.git regexec.c: Remove redundant calculation Commit 9a902117f5d8a3ebc669e3a90eeb7cee78286a33 introduced a redundancy. It calculates a value twice. --- 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++; } }