summaryrefslogtreecommitdiff
path: root/doop.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2019-11-04 14:17:09 -0700
committerKarl Williamson <khw@cpan.org>2019-11-06 21:22:24 -0700
commit5e874c42f3fcb001bc30d9d1a2618581b52a412e (patch)
tree252c95d6821aac9bfb9a89f57ac45ad3848ea550 /doop.c
parent472799915f21962871c7c62bd6b48f9e6775e0b7 (diff)
downloadperl-5e874c42f3fcb001bc30d9d1a2618581b52a412e.tar.gz
doop.c: Change name of variable
This helped me understand what was going on in this function
Diffstat (limited to 'doop.c')
-rw-r--r--doop.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/doop.c b/doop.c
index 0fa9103a18..bd7b7c5e8d 100644
--- a/doop.c
+++ b/doop.c
@@ -175,14 +175,14 @@ S_do_trans_complex(pTHX_ SV * const sv, const OPtrans_map * const tbl)
if (PL_op->op_private & OPpTRANS_SQUASH) {
const U8* p = send;
while (s < send) {
- const short ch = tbl->map[*s];
- if (ch >= 0) {
- *d = (U8)ch;
+ const short this_map = tbl->map[*s];
+ if (this_map >= 0) {
+ *d = (U8)this_map;
matches++;
if (p != d - 1 || *p != *d)
p = d++;
}
- else if (ch == (short) TR_UNMAPPED)
+ else if (this_map == (short) TR_UNMAPPED)
*d++ = *s;
else if (ch == (short) TR_DELETE)
matches++;
@@ -191,14 +191,14 @@ S_do_trans_complex(pTHX_ SV * const sv, const OPtrans_map * const tbl)
}
else { /* Not to squash */
while (s < send) {
- const short ch = tbl->map[*s];
- if (ch >= 0) {
+ const short this_map = tbl->map[*s];
+ if (this_map >= 0) {
matches++;
- *d++ = (U8)ch;
+ *d++ = (U8)this_map;
}
- else if (ch == (short) TR_UNMAPPED)
+ else if (this_map == (short) TR_UNMAPPED)
*d++ = *s;
- else if (ch == (short) TR_DELETE)
+ else if (this_map == (short) TR_DELETE)
matches++;
s++;
}