summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2017-09-15 09:56:30 +0200
committerAndreas Rumpf <rumpf_a@web.de>2017-09-15 09:56:30 +0200
commit8432eb6e67b4df011e50460342cf70a9939a0af8 (patch)
treea99c351e8585314f21f361b17ff17b42c8c07670
parent39f0195ebf30cc9f4b96953423298d7a2130eac8 (diff)
downloadNim-8432eb6e67b4df011e50460342cf70a9939a0af8.tar.gz
make bootstrapping work under the new integer promotion rules
-rw-r--r--lib/core/macros.nim2
1 files changed, 1 insertions, 1 deletions
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