Fix (some) compile-time warnings on Windows

This commit is contained in:
Joseph Henry 2021-05-03 21:12:45 -07:00
parent 7faaa55436
commit 13481cea18
No known key found for this signature in database
GPG key ID: C45B33FF5EBC9344
3 changed files with 79 additions and 37 deletions

View file

@ -15,9 +15,9 @@
#define ZT_BOND_HPP
#include "Flow.hpp"
#include "Packet.hpp"
#include "Path.hpp"
#include "Peer.hpp"
#include "Packet.hpp"
#include <list>
#include <map>
@ -351,7 +351,7 @@ class Bond {
*/
void setMinAcceptableAllocation(float minAlloc)
{
_minAcceptableAllocation = minAlloc * 255;
_minAcceptableAllocation = (uint8_t)(minAlloc * 255);
}
/**