aboutsummaryrefslogtreecommitdiff
path: root/src/harfbuzz-indic.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/harfbuzz-indic.cpp')
-rwxr-xr-xsrc/harfbuzz-indic.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/harfbuzz-indic.cpp b/src/harfbuzz-indic.cpp
index 038160e..ffe9573 100755
--- a/src/harfbuzz-indic.cpp
+++ b/src/harfbuzz-indic.cpp
@@ -37,10 +37,7 @@ static HB_Bool isLetter(HB_UChar16 ucs)
FLAG(HB_Letter_Titlecase) |
FLAG(HB_Letter_Modifier) |
FLAG(HB_Letter_Other);
- // BEGIN android-changed
- // Check the value is zero or not instead of casting int to HB_Bool(unsigned char).
- return (FLAG(HB_GetUnicodeCharCategory(ucs)) & test) != 0;
- // END android-changed
+ return !!(FLAG(HB_GetUnicodeCharCategory(ucs)) & test);
}
static HB_Bool isMark(HB_UChar16 ucs)
@@ -48,10 +45,7 @@ static HB_Bool isMark(HB_UChar16 ucs)
const int test = FLAG(HB_Mark_NonSpacing) |
FLAG(HB_Mark_SpacingCombining) |
FLAG(HB_Mark_Enclosing);
- // BEGIN android-changed
- // Check the value is zero or not instead of casting int to HB_Bool(unsigned char).
- return (FLAG(HB_GetUnicodeCharCategory(ucs)) & test) != 0;
- // END android-changed
+ return !!(FLAG(HB_GetUnicodeCharCategory(ucs)) & test);
}
enum Form {