From 76619b8b1d274f83134b91679e204acd4923cc0e Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Sat, 28 Mar 2020 14:47:42 -0700 Subject: [PATCH] fixup --- lib/system/repr.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/system/repr.nim b/lib/system/repr.nim index 78132e2993b7b..9980c20636956 100644 --- a/lib/system/repr.nim +++ b/lib/system/repr.nim @@ -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) =