diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2017-09-16 10:29:29 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-09-16 10:29:29 +0200 |
commit | 2b592a64259e4f66b0ad5dd7264f7b524c309fee (patch) | |
tree | 1dbf87794d6405efd4083fa820b55dac78d1a2d5 /lib/core/macros.nim | |
parent | 28bdf0ac80ad4f44515874e03720c70156903f6b (diff) | |
download | Nim-2b592a64259e4f66b0ad5dd7264f7b524c309fee.tar.gz |
in prepration for the upcoming different integer inference rules
Diffstat (limited to 'lib/core/macros.nim')
-rw-r--r-- | lib/core/macros.nim | 2 |
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 |