This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
utf8.c: Fix potential bug
authorKarl Williamson <public@khwilliamson.com>
Fri, 7 Sep 2012 16:54:44 +0000 (10:54 -0600)
committerKarl Williamson <public@khwilliamson.com>
Tue, 20 Nov 2012 00:12:59 +0000 (17:12 -0700)
commit923b6d4e1d5773f41f2de579e5a66a810f56db04
tree2d3fe7e786ba3e5d26341197a7cb44690151260e
parentcb856986338d0002fcd474d7fa23a4c9eab9c862
utf8.c: Fix potential bug

Commit 87367d5f9dc9bbf7db1a6cf87820cea76571bf1a changed
core_invlist_init() to return not the swash, but the swash's inversion
list if small enough, allowing a faster binary search than a slower hash
look-up on small lists.  Calls to two functions that access swashes were
changed to make this transparent.  However, there are two more such
functions which were overlooked, and need to be upgraded to provide such
transparency, should they ever be called on swashes that have been
converted.  This commit fixes one of them, but leaves the other, with a
comment, as it's much harder to do, and will not ever likely be
called on such a swash (it is for internal core use only).
utf8.c