about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/utils/twtstr.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/twtstr.nim b/src/utils/twtstr.nim
index df67b8f3..9273b703 100644
--- a/src/utils/twtstr.nim
+++ b/src/utils/twtstr.nim
@@ -927,9 +927,9 @@ const Combining = [
 ]
 
 func cmp(range: (uint32, uint32), r: Rune): int =
-  if range[0] < cast[uint32](r):
+  if range[1] < cast[uint32](r):
     return -1
-  elif range[1] > cast[uint32](r):
+  elif range[0] > cast[uint32](r):
     return 1
   return 0