Skip to content

Commit 657dbbf

Browse files
committed
char cmp int
1 parent 64e1ff6 commit 657dbbf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/kotlin/glm/extensions.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ val Char.ul get() = toUlong()
4646
val Char.us get() = toUshort()
4747

4848
infix fun Char.shl(bits: Int) = i shl bits
49+
operator fun Char.compareTo(other: Int) = i.compareTo(other)
4950
operator fun Int.plus(b: Char) = this + b.i
5051
operator fun Int.minus(b: Char) = this - b.i
5152

0 commit comments

Comments
 (0)