From f3b93d7379af6a192825d00c46efb874b0c80b51 Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Wed, 23 Jan 2019 21:23:45 +0100 Subject: [PATCH] Fix compilation with GCC --- src/XMPPConnection.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/XMPPConnection.m b/src/XMPPConnection.m index d6f22ac..57728f7 100644 --- a/src/XMPPConnection.m +++ b/src/XMPPConnection.m @@ -341,7 +341,7 @@ @throw [OFAlreadyConnectedException exception]; _socket = [[OFTCPSocket alloc] init]; - [_socket setDelegate: self]; + [(OFTCPSocket *)_socket setDelegate: self]; if (_server != nil) [_socket asyncConnectToHost: _server @@ -763,7 +763,7 @@ [newSock startTLSWithExpectedHost: nil]; [_socket release]; _socket = newSock; - [_socket setDelegate: self]; + [(OFTCPSocket *)_socket setDelegate: self]; _encrypted = true;