projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5a291f
)
reginclass: Remove unnecessary test
author
Karl Williamson
<public@khwilliamson.com>
Sun, 31 Oct 2010 18:45:50 +0000
(12:45 -0600)
committer
Father Chrysostomos
<sprout@cpan.org>
Sun, 31 Oct 2010 23:12:00 +0000
(16:12 -0700)
The previous changes have made it clear that this test never was useful,
so remove it.
regexec.c
patch
|
blob
|
history
diff --git
a/regexec.c
b/regexec.c
index
5192899
..
0fc5057
100644
(file)
--- a/
regexec.c
+++ b/
regexec.c
@@
-6238,7
+6238,7
@@
S_reginclass(pTHX_ const regexp * const prog, register const regnode * const n,
if (utf8_target || (flags & ANYOF_UNICODE)) {
if (utf8_target && !ANYOF_RUNTIME(n)) {
- if (c
_len != (STRLEN)-1 && c
< 256 && ANYOF_BITMAP_TEST(n, c))
+ if (c < 256 && ANYOF_BITMAP_TEST(n, c))
match = TRUE;
}
if (!match && utf8_target && (flags & ANYOF_UNICODE_ALL) && c >= 256)