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:
parent
adbf5fc219
commit
4a5dda489f
18 changed files with 39 additions and 30 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -265,7 +265,7 @@ namespace SocketHelpers
|
|||
break;
|
||||
}
|
||||
|
||||
bytesRead += bytesThisTime;
|
||||
bytesRead = static_cast<int> (bytesRead + bytesThisTime);
|
||||
|
||||
if (! blockUntilSpecifiedAmountHasArrived)
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue