Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour committed Mar 28, 2020
1 parent 0931052 commit 6d331bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/system/repr.nim
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ proc reprFloat(x: float): string {.compilerproc.} = return $x

proc reprPointer(x: pointer): string {.compilerproc.} =
# size: 0x + hexAddr + '\0'
var buf {.noinit.}: array[2 + pointer.sizeof * 2 + 1], char]
var buf {.noinit.}: array[2 + pointer.sizeof * 2 + 1, char]
result.strAppend buf[0].addr, c_sprintf(buf.toCstring, "%p", x)

proc reprStrAux(result: var string, s: cstring; len: int) =
Expand Down

0 comments on commit 6d331bf

Please sign in to comment.