Skip to content

Commit 311160c

Browse files
committed
doop.c: Move common subexpression to common code
1 parent 48f4f43 commit 311160c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doop.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ S_do_trans_simple(pTHX_ SV * const sv, const OPtrans_map * const tbl)
8686
if (c < 0x100 && (ch = tbl->map[c]) >= 0) {
8787
matches++;
8888
d = uv_to_utf8(d, (UV)ch);
89-
s += ulen;
9089
}
9190
else { /* No match -> copy */
9291
Move(s, d, ulen, U8);
9392
d += ulen;
94-
s += ulen;
9593
}
94+
95+
s += ulen;
9696
}
9797
if (grows) {
9898
sv_setpvn(sv, (char*)dstart, d - dstart);

0 commit comments

Comments
 (0)