diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-04-26 20:43:13 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-04-26 20:43:13 +0000 |
commit | 1f1a6e4688ff764ec0ae257cdc79a5374937af88 (patch) | |
tree | cde80d4e5611eb6fb0a9c3b3fcb427e8d9ac2a25 /regcomp.c | |
parent | 224e8ef5af1c2136286a2281940d1d58698affca (diff) | |
download | perl-1f1a6e4688ff764ec0ae257cdc79a5374937af88.tar.gz |
Avoid a SIGBUS caused by passing a U32 pointer to utf8_to_uvchr(),
which expects a STRLEN pointer.
Avoid some signed/unsigned casting warnings by adding casts.
p4raw-id: //depot/perl@31093
Diffstat (limited to 'regcomp.c')
-rw-r--r-- | regcomp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -6576,7 +6576,7 @@ tryagain: case 0xC3: case 0xCE: if (FOLD && is_TRICKYFOLD(RExC_parse,UTF)) { - U32 len = UTF ? 0 : 1; + STRLEN len = UTF ? 0 : 1; U32 cp = UTF ? utf8_to_uvchr((U8*)RExC_parse, &len) : (U32)((U8*)RExC_parse)[0]; *flagp |= HASWIDTH; /* could be SIMPLE too, but needs a handler in regexec.regrepeat */ RExC_parse+=len; |