Removed unneeded conversion

This commit is contained in:
John Dupuy 2020-05-15 11:28:19 -05:00 • committed by zah
commit d3ef34b325

View file

@ -103,9 +103,8 @@ when defined(c):
## with the 'c' flag. Otherwise, float types are passed to the generic writeText ## with the 'c' flag. Otherwise, float types are passed to the generic writeText
## procedure. ## procedure.
var buffer: array[65, char] var buffer: array[65, char]
discard writeFloatToBuffer(buffer, x) let blen = writeFloatToBuffer(buffer, x)
let bs: cstring = addr buffer write s, buffer.toOpenArray(0, blen - 1)
write s, bs.toOpenArray(0, bs.len - 1)
template writeText*(s: OutputStream, str: string) = template writeText*(s: OutputStream, str: string) =
write s, str write s, str