change 'Rune' type in unicode module to 'int32'
This commit is contained in:
parent
24a56a2cb6
commit
a98705dddc
1 changed files with 2 additions and 2 deletions
|
|
@ -14,7 +14,7 @@
|
||||||
include "system/inclrtl"
|
include "system/inclrtl"
|
||||||
|
|
||||||
type
|
type
|
||||||
RuneImpl = int # underlying type of Rune
|
RuneImpl = int32 # underlying type of Rune
|
||||||
Rune* = distinct RuneImpl ## type that can hold any Unicode character
|
Rune* = distinct RuneImpl ## type that can hold any Unicode character
|
||||||
Rune16* = distinct int16 ## 16 bit Unicode character
|
Rune16* = distinct int16 ## 16 bit Unicode character
|
||||||
|
|
||||||
|
|
@ -1148,7 +1148,7 @@ const
|
||||||
0x01f1, 501, #
|
0x01f1, 501, #
|
||||||
0x01f3, 499] #
|
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 n = len
|
||||||
var t = 0
|
var t = 0
|
||||||
while n > 1:
|
while n > 1:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue