summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2010-12-28 09:33:36 -0700
committerKarl Williamson <public@khwilliamson.com>2011-01-16 19:13:24 -0700
commit6d816fb80d2076797e96806cab8abe80afb883a1 (patch)
tree23c6da54995fb067a601a93ae3f92e59da3f89e9 /regexec.c
parentc269f40313641284eb670ea37200c7fcb6caec05 (diff)
downloadperl-6d816fb80d2076797e96806cab8abe80afb883a1.tar.gz
regexec.c: Convert two !=0's to cBOOL
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/regexec.c b/regexec.c
index a47bfc74bf..4de4b1db0b 100644
--- a/regexec.c
+++ b/regexec.c
@@ -1533,8 +1533,8 @@ S_find_byclass(pTHX_ regexp * prog, const regnode *c, char *s,
U8 * const r = reghop3((U8*)s, -1, (U8*)PL_bostr);
tmp = utf8n_to_uvchr(r, UTF8SKIP(r), 0, UTF8_ALLOW_DEFAULT);
}
- tmp = ((OP(c) == BOUND ?
- isALNUM_uni(tmp) : isALNUM_LC_uvchr(UNI_TO_NATIVE(tmp))) != 0);
+ tmp = cBOOL(OP(c) == BOUND ?
+ isALNUM_uni(tmp) : isALNUM_LC_uvchr(UNI_TO_NATIVE(tmp)));
LOAD_UTF8_CHARCLASS_ALNUM();
REXEC_FBC_UTF8_SCAN(
if (tmp == !(OP(c) == BOUND ?
@@ -1578,8 +1578,8 @@ S_find_byclass(pTHX_ regexp * prog, const regnode *c, char *s,
U8 * const r = reghop3((U8*)s, -1, (U8*)PL_bostr);
tmp = utf8n_to_uvchr(r, UTF8SKIP(r), 0, UTF8_ALLOW_DEFAULT);
}
- tmp = ((OP(c) == NBOUND ?
- isALNUM_uni(tmp) : isALNUM_LC_uvchr(UNI_TO_NATIVE(tmp))) != 0);
+ tmp = cBOOL(OP(c) == NBOUND ?
+ isALNUM_uni(tmp) : isALNUM_LC_uvchr(UNI_TO_NATIVE(tmp)));
LOAD_UTF8_CHARCLASS_ALNUM();
REXEC_FBC_UTF8_SCAN(
if (tmp == !(OP(c) == NBOUND ?