summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2017-09-16 10:29:29 +0200
committerAndreas Rumpf <rumpf_a@web.de>2017-09-16 10:29:29 +0200
commit2b592a64259e4f66b0ad5dd7264f7b524c309fee (patch)
tree1dbf87794d6405efd4083fa820b55dac78d1a2d5 /lib/pure
parent28bdf0ac80ad4f44515874e03720c70156903f6b (diff)
downloadNim-2b592a64259e4f66b0ad5dd7264f7b524c309fee.tar.gz
in prepration for the upcoming different integer inference rules
Diffstat (limited to 'lib/pure')
-rw-r--r--lib/pure/strutils.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/strutils.nim b/lib/pure/strutils.nim
index 2a64e70d9..8b4e6bd05 100644
--- a/lib/pure/strutils.nim
+++ b/lib/pure/strutils.nim
@@ -888,7 +888,7 @@ proc toHex*(x: BiggestInt, len: Positive): string {.noSideEffect,
     n = x
   result = newString(len)
   for j in countdown(len-1, 0):
-    result[j] = HexChars[n and 0xF]
+    result[j] = HexChars[int(n and 0xF)]
     n = n shr 4
     # handle negative overflow
     if n == 0 and x < 0: n = -1