Skip to content
This repository has been archived by the owner on Aug 10, 2021. It is now read-only.

Commit

Permalink
Fix isw* function usage
Browse files Browse the repository at this point in the history
  • Loading branch information
olonho committed Apr 3, 2017
1 parent 25eaa72 commit 960514b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions runtime/src/main/cpp/KString.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,15 +320,15 @@ KBoolean Kotlin_Char_isDefined(KChar ch) {
}

KBoolean Kotlin_Char_isLetter(KChar ch) {
return iswalpha(ch);
return iswalpha(ch) != 0;
}

KBoolean Kotlin_Char_isLetterOrDigit(KChar ch) {
return iswalnum(ch);
return iswalnum(ch) != 0;
}

KBoolean Kotlin_Char_isDigit(KChar ch) {
return iswdigit(ch);
return iswdigit(ch) != 0;
}

KBoolean Kotlin_Char_isIdentifierIgnorable(KChar ch) {
Expand All @@ -350,15 +350,15 @@ KBoolean Kotlin_Char_isLowSurrogate(KChar ch) {
}

KBoolean Kotlin_Char_isWhitespace(KChar ch) {
return iswspace(ch);
return iswspace(ch) != 0;
}

KBoolean Kotlin_Char_isLowerCase(KChar ch) {
return iswlower(ch);
return iswlower(ch) != 0;
}

KBoolean Kotlin_Char_isUpperCase(KChar ch) {
return iswupper(ch);
return iswupper(ch) != 0;
}

KChar Kotlin_Char_toLowerCase(KChar ch) {
Expand Down

0 comments on commit 960514b

Please sign in to comment.