From 7ecd24393f7f89321a19397ad7b013deb36a23e0 Mon Sep 17 00:00:00 2001 From: Chloride Cull Date: Sun, 24 Aug 2014 16:49:49 +0200 Subject: [PATCH] No implicit conversions from long to int source/sslsocket.d(44): Error: function deimos.openssl.ssl.SSL_read (ssl_st* ssl, void* buf, int num) is not callable using argument types (ssl_st*, void*, ulong) --- sslsocket.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sslsocket.d b/sslsocket.d index 1422673..7cf0a46 100644 --- a/sslsocket.d +++ b/sslsocket.d @@ -41,7 +41,7 @@ class OpenSslSocket : Socket { } @trusted override ptrdiff_t receive(void[] buf, SocketFlags flags) { - return SSL_read(ssl, buf.ptr, buf.length); + return SSL_read(ssl, buf.ptr, cast(int)buf.length); } override ptrdiff_t receive(void[] buf) { return receive(buf, SocketFlags.NONE);