1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fixed some warnings with -Wconversion enabled

This commit is contained in:
ed 2020-03-16 17:06:45 +00:00
parent adbf5fc219
commit 4a5dda489f
18 changed files with 39 additions and 30 deletions

View file

@ -90,10 +90,10 @@ IPAddress::IPAddress (uint16 a1, uint16 a2, uint16 a3, uint16 a4,
IPAddress::IPAddress (uint32 n) noexcept : isIPv6 (false)
{
address[0] = (n >> 24);
address[1] = (n >> 16) & 255;
address[2] = (n >> 8) & 255;
address[3] = (n & 255);
address[0] = static_cast<uint8> (n >> 24);
address[1] = static_cast<uint8> ((n >> 16) & 255);
address[2] = static_cast<uint8> ((n >> 8) & 255);
address[3] = static_cast<uint8> ((n & 255));
zeroUnusedBytes (address);
}

View file

@ -265,7 +265,7 @@ namespace SocketHelpers
break;
}
bytesRead += bytesThisTime;
bytesRead = static_cast<int> (bytesRead + bytesThisTime);
if (! blockUntilSpecifiedAmountHasArrived)
break;