diff --git a/src/blackcore/afv/clients/afvclient.cpp b/src/blackcore/afv/clients/afvclient.cpp index 369c04d72..b45a5acdb 100644 --- a/src/blackcore/afv/clients/afvclient.cpp +++ b/src/blackcore/afv/clients/afvclient.cpp @@ -328,7 +328,7 @@ namespace BlackCore void AFVClient::audioOutDataAvailable(const AudioRxOnTransceiversDto &dto) { IAudioDto audioData; - audioData.audio = QByteArray(dto.audio.data(), dto.audio.size()); + audioData.audio = QByteArray(dto.audio.data(), static_cast(dto.audio.size())); audioData.callsign = QString::fromStdString(dto.callsign); audioData.lastPacket = dto.lastPacket; audioData.sequenceCounter = dto.sequenceCounter; diff --git a/src/blackcore/afv/connection/clientconnection.cpp b/src/blackcore/afv/connection/clientconnection.cpp index 09a9a9a9d..38c1a4e0c 100644 --- a/src/blackcore/afv/connection/clientconnection.cpp +++ b/src/blackcore/afv/connection/clientconnection.cpp @@ -158,7 +158,7 @@ namespace BlackCore HeartbeatDto keepAlive; keepAlive.callsign = m_connection.m_callsign.toStdString(); QByteArray dataBytes = CryptoDtoSerializer::Serialize(*m_connection.voiceCryptoChannel, CryptoDtoMode::AEAD_ChaCha20Poly1305, keepAlive); - m_udpSocket.writeDatagram(dataBytes, QHostAddress(voiceServerUrl.host()), voiceServerUrl.port()); + m_udpSocket.writeDatagram(dataBytes, QHostAddress(voiceServerUrl.host()), static_cast(voiceServerUrl.port())); } } // ns } // ns diff --git a/src/blackcore/afv/connection/clientconnection.h b/src/blackcore/afv/connection/clientconnection.h index 9472d3fef..d5c60fc2b 100644 --- a/src/blackcore/afv/connection/clientconnection.h +++ b/src/blackcore/afv/connection/clientconnection.h @@ -56,7 +56,7 @@ namespace BlackCore { QUrl voiceServerUrl("udp://" + m_connection.m_tokens.VoiceServer.addressIpV4); QByteArray dataBytes = Crypto::CryptoDtoSerializer::Serialize(*m_connection.voiceCryptoChannel, CryptoDtoMode::AEAD_ChaCha20Poly1305, dto); - m_udpSocket.writeDatagram(dataBytes, QHostAddress(voiceServerUrl.host()), voiceServerUrl.port()); + m_udpSocket.writeDatagram(dataBytes, QHostAddress(voiceServerUrl.host()), static_cast(voiceServerUrl.port())); } bool receiveAudioDto() const;