From 2b592a64259e4f66b0ad5dd7264f7b524c309fee Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Sat, 16 Sep 2017 10:29:29 +0200 Subject: in prepration for the upcoming different integer inference rules --- lib/pure/strutils.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/pure') 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 -- cgit 1.4.1-2-gfad0