mirror of https://gitee.com/bigwinds/arangodb
handle UBool result type correctly
This commit is contained in:
parent
4c7fd533d1
commit
c0e26e7a78
|
@ -701,12 +701,12 @@ bool Utf8Helper::matches (RegexMatcher* matcher,
|
|||
error = false;
|
||||
|
||||
TRI_ASSERT(matcher != nullptr);
|
||||
bool result = matcher->matches(status);
|
||||
UBool result = matcher->matches(status);
|
||||
if (U_FAILURE(status)) {
|
||||
error = true;
|
||||
}
|
||||
|
||||
return result;
|
||||
return (result ? true : false);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in New Issue