We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0931052 commit 6d331bfCopy full SHA for 6d331bf
lib/system/repr.nim
@@ -17,7 +17,7 @@ proc reprFloat(x: float): string {.compilerproc.} = return $x
17
18
proc reprPointer(x: pointer): string {.compilerproc.} =
19
# size: 0x + hexAddr + '\0'
20
- var buf {.noinit.}: array[2 + pointer.sizeof * 2 + 1], char]
+ var buf {.noinit.}: array[2 + pointer.sizeof * 2 + 1, char]
21
result.strAppend buf[0].addr, c_sprintf(buf.toCstring, "%p", x)
22
23
proc reprStrAux(result: var string, s: cstring; len: int) =
0 commit comments