make bootstrapping work under the new integer promotion rules
This commit is contained in:
parent
39f0195ebf
commit
8432eb6e67
1 changed files with 1 additions and 1 deletions
|
|
@ -669,7 +669,7 @@ proc astGenRepr*(n: NimNode): string {.compileTime, benign.} =
|
||||||
t = x
|
t = x
|
||||||
result = newString(len)
|
result = newString(len)
|
||||||
for j in countdown(len-1, 0):
|
for j in countdown(len-1, 0):
|
||||||
result[j] = HexChars[t and 0xF]
|
result[j] = HexChars[int(t and 0xF)]
|
||||||
t = t shr 4
|
t = t shr 4
|
||||||
# handle negative overflow
|
# handle negative overflow
|
||||||
if t == 0 and x < 0: t = -1
|
if t == 0 and x < 0: t = -1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue