From 436a5a01ab9c2baa13e68d87de26e3e7ecc125aa Mon Sep 17 00:00:00 2001 From: Anatoly Galiulin Date: Wed, 31 Aug 2016 12:05:47 +0700 Subject: [PATCH] Fix typo --- lib/pure/asyncnet.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pure/asyncnet.nim b/lib/pure/asyncnet.nim index d921008317..e568ffc984 100644 --- a/lib/pure/asyncnet.nim +++ b/lib/pure/asyncnet.nim @@ -326,7 +326,7 @@ proc sendBuffer*(socket: AsyncSocket, buf: pointer, size: int, if socket.isSsl: when defineSsl: sslLoop(socket, flags, - sslWrite(socket.sslHandle, cast[pointer](buf), size.cint)) + sslWrite(socket.sslHandle, cast[cstring](buf), size.cint)) await sendPendingSslData(socket, flags) else: await sendBuffer(socket.fd.AsyncFD, buf, size, flags)