kopia lustrzana https://gitlab.com/eliggett/wfview
Second attempt to fix Linux warnings
rodzic
844214126d
commit
f82e2c9746
|
@ -620,7 +620,7 @@ void udpCivData::dataReceived()
|
|||
startCivDataTimer->stop();
|
||||
}
|
||||
lastReceived = QTime::currentTime();
|
||||
if (in->datalen + (quint8)0x15 == in->len)
|
||||
if (quint16(in->datalen + 0x15) == (quint16)in->len)
|
||||
{
|
||||
emit receive(r.mid(0x15));
|
||||
}
|
||||
|
|
|
@ -438,7 +438,7 @@ void udpServer::civReceived()
|
|||
data_packet_t in = (data_packet_t)r.constData();
|
||||
if (in->type != 0x01)
|
||||
{
|
||||
if (in->datalen + (quint8)0x15 == in->len)
|
||||
if (quint16(in->datalen + 0x15) == (quint16)in->len)
|
||||
{
|
||||
emit haveDataFromServer(r.mid(0x15));
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue