summaryrefslogtreecommitdiff
path: root/doop.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2019-11-04 13:12:21 -0700
committerKarl Williamson <khw@cpan.org>2019-11-06 21:22:24 -0700
commit472799915f21962871c7c62bd6b48f9e6775e0b7 (patch)
tree2de6759aa0c2b39c5f289ea5fba966f1cafccd4a /doop.c
parentb8e8e0fc7ce2b44e6b1ba9f6ea70ac62f044c284 (diff)
downloadperl-472799915f21962871c7c62bd6b48f9e6775e0b7.tar.gz
doop.c: Change out-of-bounds value
This currently uses 0xfeedface as a marker for something that isn't a legal value. But that could in fact become legal at same point. This defines a value TR_OOB that can be guaranteed not to become legal.
Diffstat (limited to 'doop.c')
-rw-r--r--doop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/doop.c b/doop.c
index 60f2b35a8b..0fa9103a18 100644
--- a/doop.c
+++ b/doop.c
@@ -216,7 +216,7 @@ S_do_trans_complex(pTHX_ SV * const sv, const OPtrans_map * const tbl)
/* What the mapping of the previous character was to. If the new
* character has the same mapping, it is squashed from the output (but
* still is included in the count) */
- UV pch = 0xfeedface;
+ UV pch = TR_OOB;
if (grows)
/* Allow for worst-case expansion: Each input byte can become 2.
@@ -261,7 +261,7 @@ S_do_trans_complex(pTHX_ SV * const sv, const OPtrans_map * const tbl)
}
s += len;
- pch = 0xfeedface;
+ pch = TR_OOB;
}
if (grows) {