summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-06-02 01:01:32 +0200
committerAndreas Rumpf <rumpf_a@web.de>2016-06-02 01:01:32 +0200
commit86c25a1e54f25cb3529946d3d9c0032d69db2c06 (patch)
treed002bd8f26f97d4f434931b7a99aa4e0ff509ce8 /lib/pure
parenta7ff60bf737ede753c058a518cb772357187d24e (diff)
parenta98705dddcda441429ed569d5203a0b4058f9109 (diff)
downloadNim-86c25a1e54f25cb3529946d3d9c0032d69db2c06.tar.gz
Merge pull request #4257 from Parashurama/change_rune_type
change 'Rune' type in unicode module to 'int32'
Diffstat (limited to 'lib/pure')
-rw-r--r--lib/pure/unicode.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/unicode.nim b/lib/pure/unicode.nim
index 45f52eb7f..eeb1b607d 100644
--- a/lib/pure/unicode.nim
+++ b/lib/pure/unicode.nim
@@ -14,7 +14,7 @@
 include "system/inclrtl"
 
 type
-  RuneImpl = int # underlying type of Rune
+  RuneImpl = int32 # underlying type of Rune
   Rune* = distinct RuneImpl   ## type that can hold any Unicode character
   Rune16* = distinct int16 ## 16 bit Unicode character
 
@@ -1148,7 +1148,7 @@ const
     0x01f1, 501,  #
     0x01f3, 499]  #
 
-proc binarySearch(c: RuneImpl, tab: openArray[RuneImpl], len, stride: int): int =
+proc binarySearch(c: RuneImpl, tab: openArray[int], len, stride: int): int =
   var n = len
   var t = 0
   while n > 1: