diff options
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/rodutils.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rodutils.nim b/compiler/rodutils.nim index 3a90a207c..6e77e6b8f 100644 --- a/compiler/rodutils.nim +++ b/compiler/rodutils.nim @@ -22,7 +22,7 @@ proc toStrMaxPrecision*(f: BiggestFloat, literalPostfix = ""): string = else: result = "-INF" else: var buf: array[0..80, char] - let newLen = c_snprintf(buf.cstring, buf.len.uint, "%#.16e%s", f, literalPostfix.cstring) + discard c_snprintf(buf.cstring, buf.len.uint, "%#.16e%s", f, literalPostfix.cstring) result = $buf.cstring proc encodeStr*(s: string, result: var string) = |