From 7dd9a92ccb919e734e8891467286a2e0597894de Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Mon, 25 Mar 2019 01:22:44 +0200 Subject: [PATCH] Work-around a Nim compilation issue --- faststreams/output_stream.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/faststreams/output_stream.nim b/faststreams/output_stream.nim index 45777ff..966fc78 100644 --- a/faststreams/output_stream.nim +++ b/faststreams/output_stream.nim @@ -65,7 +65,8 @@ proc append*(s: OutputStreamVar, b: byte) = s.head = shift(s.head, 1) template append*(s: OutputStreamVar, c: char) = - s.append byte(c) + bind append + append s, byte(c) proc append*(s: OutputStreamVar, bytes: openarray[byte]) = # TODO: this can use copyMem