From 8432eb6e67b4df011e50460342cf70a9939a0af8 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Fri, 15 Sep 2017 09:56:30 +0200 Subject: make bootstrapping work under the new integer promotion rules --- lib/core/macros.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/core/macros.nim') diff --git a/lib/core/macros.nim b/lib/core/macros.nim index 3cfefb5c1..e88002c7b 100644 --- a/lib/core/macros.nim +++ b/lib/core/macros.nim @@ -669,7 +669,7 @@ proc astGenRepr*(n: NimNode): string {.compileTime, benign.} = t = x result = newString(len) for j in countdown(len-1, 0): - result[j] = HexChars[t and 0xF] + result[j] = HexChars[int(t and 0xF)] t = t shr 4 # handle negative overflow if t == 0 and x < 0: t = -1 -- cgit 1.4.1-2-gfad0