1
0
Fork 0

handle UBool result type correctly

This commit is contained in:
Jan Steemann 2015-08-04 12:21:34 +02:00
parent 4c7fd533d1
commit c0e26e7a78
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
////////////////////////////////////////////////////////////////////////////////