aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Wankadia <junyer@google.com>2016-02-11 12:30:00 +1100
committerPaul Wankadia <junyer@google.com>2016-02-11 01:31:25 +0000
commit14c7fafc9d68005b06fb958302f57990f33f8a88 (patch)
treebed0153f3dfff5fc3320b0dc92ab0591abed823a
parenta6b34eae5272387b17bd6e68e0150dcf7862a7ad (diff)
downloadregex-re2-14c7fafc9d68005b06fb958302f57990f33f8a88.tar.gz
Use the U_FAILURE macro instead.
Change-Id: I113af8751fcf0eb3f46583a317001b17c4779413 Reviewed-on: https://code-review.googlesource.com/4154 Reviewed-by: Paul Wankadia <junyer@google.com>
-rw-r--r--re2/parse.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/re2/parse.cc b/re2/parse.cc
index bd4f9c8..f55dc8c 100644
--- a/re2/parse.cc
+++ b/re2/parse.cc
@@ -1660,7 +1660,7 @@ ParseStatus ParseUnicodeGroup(StringPiece* s, Regexp::ParseFlags parse_flags,
string("\\p{") + name.ToString() + string("}"));
UErrorCode uerr = U_ZERO_ERROR;
::icu::UnicodeSet uset(ustr, uerr);
- if (uerr != U_ZERO_ERROR) {
+ if (U_FAILURE(uerr)) {
status->set_code(kRegexpBadCharRange);
status->set_error_arg(seq);
return kParseError;