Fix compilation errors.

This commit is contained in:
cheatfate 2018-06-15 03:58:17 +03:00
parent a0c724e9d8
commit b231e7ebf8
1 changed files with 4 additions and 2 deletions

View File

@ -510,7 +510,8 @@ proc newDatagramTransport*[T](cbproc: DatagramCallback,
var fflags = flags + {GCUserData}
GC_ref(udata)
result = newDatagramTransportCommon(cbproc, remote, local, sock,
fflags, udata, child, bufSize)
fflags, cast[pointer](udata),
child, bufSize)
proc newDatagramTransport6*(cbproc: DatagramCallback,
remote: TransportAddress = AnyAddress6,
@ -546,7 +547,8 @@ proc newDatagramTransport6*[T](cbproc: DatagramCallback,
var fflags = flags + {GCUserData}
GC_ref(udata)
result = newDatagramTransportCommon(cbproc, remote, local, sock,
fflags, udata, child, bufSize)
fflags, cast[pointer](udata),
child, bufSize)
proc join*(transp: DatagramTransport) {.async.} =
## Wait until the transport ``transp`` will be closed.