diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2017-10-10 09:18:31 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-10-10 09:18:31 +0200 |
commit | 55cb959a68f00e4702bf1f80207d574dd1888f46 (patch) | |
tree | 509e453381557bd2658e7b85dde07dcf9447bf52 /tests/float | |
parent | 7016a8f57d819f2d7f7f7275b93ec358c29a268f (diff) | |
download | Nim-55cb959a68f00e4702bf1f80207d574dd1888f46.tar.gz |
make tests green again; closes #5861
Diffstat (limited to 'tests/float')
-rw-r--r-- | tests/float/tfloat4.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/float/tfloat4.nim b/tests/float/tfloat4.nim index d7783ce26..559c8aaca 100644 --- a/tests/float/tfloat4.nim +++ b/tests/float/tfloat4.nim @@ -9,7 +9,7 @@ proc c_sprintf(buf, fmt: cstring) {.importc:"sprintf", header: "<stdio.h>", vara proc floatToStr(f: float64): string = var buffer: array[128, char] - c_sprintf(buffer, "%.16e", f) + c_sprintf(addr buffer, "%.16e", f) result = "" for ch in buffer: if ch == '\0': |