summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2019-09-19 16:04:03 -0600
committerKarl Williamson <khw@cpan.org>2019-11-17 21:05:34 -0700
commit6af2b2bc94074facdfaf2fce0fead0bda275d966 (patch)
treee52da4c4533793278bd97b35b23a8b51fbdc231e /regexec.c
parent5a967f091016dde257bdfff38713679536ac1e05 (diff)
downloadperl-6af2b2bc94074facdfaf2fce0fead0bda275d966.tar.gz
regexec.c: Rmv some unnecessary casts
The called macro does the cast, and this makes it more legibile
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/regexec.c b/regexec.c
index 78781bd49c..9b8f74165c 100644
--- a/regexec.c
+++ b/regexec.c
@@ -2198,7 +2198,7 @@ S_find_byclass(pTHX_ regexp * prog, const regnode *c, char *s,
case ANYOFHr:
if (utf8_target) { /* Can't possibly match a non-UTF-8 target */
REXEC_FBC_CLASS_SCAN(TRUE,
- ( inRANGE((U8) NATIVE_UTF8_TO_I8(*s),
+ ( inRANGE(NATIVE_UTF8_TO_I8(*s),
LOWEST_ANYOF_HRx_BYTE(ANYOF_FLAGS(c)),
HIGHEST_ANYOF_HRx_BYTE(ANYOF_FLAGS(c)))
&& reginclass(prog, c, (U8*)s, (U8*) strend, utf8_target)));
@@ -6839,7 +6839,7 @@ S_regmatch(pTHX_ regmatch_info *reginfo, char *startpos, regnode *prog)
case ANYOFH:
if ( ! utf8_target
|| NEXTCHR_IS_EOS
- || ANYOF_FLAGS(scan) > NATIVE_UTF8_TO_I8((U8) *locinput)
+ || ANYOF_FLAGS(scan) > NATIVE_UTF8_TO_I8(*locinput)
|| ! reginclass(rex, scan, (U8*)locinput, (U8*) loceol,
utf8_target))
{
@@ -9662,7 +9662,7 @@ S_regrepeat(pTHX_ regexp *prog, char **startposp, const regnode *p,
if (utf8_target) { /* ANYOFH only can match UTF-8 targets */
while ( hardcount < max
&& scan < this_eol
- && NATIVE_UTF8_TO_I8((U8) *scan) >= ANYOF_FLAGS(p)
+ && NATIVE_UTF8_TO_I8(*scan) >= ANYOF_FLAGS(p)
&& reginclass(prog, p, (U8*)scan, (U8*) this_eol, TRUE))
{
scan += UTF8SKIP(scan);
@@ -9691,10 +9691,10 @@ S_regrepeat(pTHX_ regexp *prog, char **startposp, const regnode *p,
if (utf8_target) { /* ANYOFH only can match UTF-8 targets */
while ( hardcount < max
&& scan < this_eol
- && inRANGE((U8) NATIVE_UTF8_TO_I8(*scan),
+ && inRANGE(NATIVE_UTF8_TO_I8(*scan),
LOWEST_ANYOF_HRx_BYTE(ANYOF_FLAGS(p)),
HIGHEST_ANYOF_HRx_BYTE(ANYOF_FLAGS(p)))
- && NATIVE_UTF8_TO_I8((U8) *scan) >= ANYOF_FLAGS(p)
+ && NATIVE_UTF8_TO_I8(*scan) >= ANYOF_FLAGS(p)
&& reginclass(prog, p, (U8*)scan, (U8*) this_eol, TRUE))
{
scan += UTF8SKIP(scan);