mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-11 15:33:07 +00:00
Fix signed/unsigned compare warning.
This commit is contained in:
parent
d92da40bff
commit
d5fdfaea56
@ -693,7 +693,7 @@ void EthernetTap::threadMain()
|
|||||||
// data until we have at least a frame.
|
// data until we have at least a frame.
|
||||||
r += n;
|
r += n;
|
||||||
if (r > 14) {
|
if (r > 14) {
|
||||||
if (r > (_mtu + 14)) // sanity check for weird TAP behavior on some platforms
|
if (r > ((int)_mtu + 14)) // sanity check for weird TAP behavior on some platforms
|
||||||
r = _mtu + 14;
|
r = _mtu + 14;
|
||||||
for(int i=0;i<6;++i)
|
for(int i=0;i<6;++i)
|
||||||
to.data[i] = (unsigned char)getBuf[i];
|
to.data[i] = (unsigned char)getBuf[i];
|
||||||
|
Loading…
Reference in New Issue
Block a user