Fix (some) compile-time warnings on Windows
This commit is contained in:
parent
7faaa55436
commit
13481cea18
3 changed files with 79 additions and 37 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue