about summary refs log tree commit diff stats
path: root/res/gencharwidth.nim
diff options
context:
space:
mode:
Diffstat (limited to 'res/gencharwidth.nim')
-rw-r--r--res/gencharwidth.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/res/gencharwidth.nim b/res/gencharwidth.nim
index 9e6d25a7..3cc0bebd 100644
--- a/res/gencharwidth.nim
+++ b/res/gencharwidth.nim
@@ -145,9 +145,9 @@ proc main() =
   var DoubleWidthTable = makePropertyTable(DoubleWidthRanges, Combining)
   # Control chars return a width of 2, and are displayed as ^{letter}.
   for c in Controls:
-    let u = int(c)
-    let i = u div (sizeof(int) * 8)
-    let m = u mod (sizeof(int) * 8)
+    let u = ptint(c)
+    let i = u div (sizeof(ptint) * 8)
+    let m = u mod (sizeof(ptint) * 8)
     DoubleWidthTable[i] = DoubleWidthTable[i] or ptint(1 shl m)
   let CombiningTable = makePropertyTable(Combining)