From 9c5c6bdd6fd7bfccd873f4a7b2cebd9698fb37a2 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Thu, 1 Aug 2019 19:26:22 +0300 Subject: [PATCH] Fix a build issue affecting Nim 0.20.2 --- faststreams/input_stream.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/faststreams/input_stream.nim b/faststreams/input_stream.nim index 20c292a..7894576 100644 --- a/faststreams/input_stream.nim +++ b/faststreams/input_stream.nim @@ -6,7 +6,7 @@ const debugHelpers = false type - StreamReader = proc (bufferStart: ptr byte, bufferSize: int): int + StreamReader = proc (bufferStart: ptr byte, bufferSize: int): int {.gcsafe.} # TODO: use openarray once it's supported AsyncStreamReader = StreamReader # proc (bufferStart: ptr byte, bufferSize: int): Future[int] CloseStreamProc = proc ()