diff options
author | Karl Williamson <public@khwilliamson.com> | 2010-12-28 09:33:36 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2011-01-16 19:13:24 -0700 |
commit | 6d816fb80d2076797e96806cab8abe80afb883a1 (patch) | |
tree | 23c6da54995fb067a601a93ae3f92e59da3f89e9 /regexec.c | |
parent | c269f40313641284eb670ea37200c7fcb6caec05 (diff) | |
download | perl-6d816fb80d2076797e96806cab8abe80afb883a1.tar.gz |
regexec.c: Convert two !=0's to cBOOL
Diffstat (limited to 'regexec.c')
-rw-r--r-- | regexec.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 ? |