make tests green again; closes #5861
This commit is contained in:
parent
7016a8f57d
commit
55cb959a68
4 changed files with 19 additions and 19 deletions
|
|
@ -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':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue