Fix compiler warning about mismatching signedness

This commit is contained in:
2025-02-06 15:25:07 +01:00
parent edcbf03505
commit ace5da0dfd

View File

@@ -423,7 +423,7 @@ void casDGIntfIO::sendBeaconIO ( char & msg, unsigned length,
osiSockAddrNode *pAddr = reinterpret_cast<osiSockAddrNode *>(pNode);
ssize_t status = sendto(this->beaconSock, &msg, length, 0, &pAddr->addr.sa, sizeof(pAddr->addr.ia));
if ( status != length ) {
if ( status != static_cast<ssize_t>(length) ) {
char sockErrBuf[64], buf[64];
epicsSocketConvertErrnoToString ( sockErrBuf, sizeof ( sockErrBuf ) );
ipAddrToA ( &pAddr->addr.ia, buf, sizeof(buf) );