summaryrefslogtreecommitdiff
path: root/regen/mk_invlists.pl
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2019-08-25 18:41:44 -0600
committerKarl Williamson <khw@cpan.org>2019-08-26 09:54:22 -0600
commitf4d6df297dfa1ce0ef62433181961bd7e80b2497 (patch)
tree7f382676235447c59f23c6a9c5738f09b455c326 /regen/mk_invlists.pl
parent9a9a3246d59159e9717e27dee127f17f7158ac35 (diff)
downloadperl-f4d6df297dfa1ce0ef62433181961bd7e80b2497.tar.gz
regen/mk_invlists.pl: Never remap 0
0 is a special marker, and shouldn't be remapped. It would be unlikely to be so, but this makes sure.
Diffstat (limited to 'regen/mk_invlists.pl')
-rw-r--r--regen/mk_invlists.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/regen/mk_invlists.pl b/regen/mk_invlists.pl
index 62db2f3989..42e391bf2e 100644
--- a/regen/mk_invlists.pl
+++ b/regen/mk_invlists.pl
@@ -2715,8 +2715,8 @@ foreach my $prop (@props) {
# Do convert to native for maps to single code points.
# There are some properties that have a few outlier
# maps that aren't code points, so the above test
- # skips those.
- $bucket = a2n($invmap[0]);
+ # skips those. 0 is never remapped.
+ $bucket = $invmap[0] == 0 ? 0 : a2n($invmap[0]);
} else {
$bucket = $invmap[0];
}