make tests green again; closes #5861

This commit is contained in:
Andreas Rumpf 2017-10-10 09:18:31 +02:00
commit 55cb959a68
4 changed files with 19 additions and 19 deletions

View file

@ -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':