summaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2013-10-28 16:54:35 -0400
committerAdam Ierymenko <adam.ierymenko@gmail.com>2013-10-28 16:54:35 -0400
commitd5fdfaea56e6c3c1d8f8b5ade03d927c94825bec (patch)
tree367e4979fa70e21d0d8ce3a6d0c795956a68d3b8 /node
parentd92da40bff0e32a3b3fa5218cfecc924267a2add (diff)
downloadinfinitytier-d5fdfaea56e6c3c1d8f8b5ade03d927c94825bec.tar.gz
infinitytier-d5fdfaea56e6c3c1d8f8b5ade03d927c94825bec.zip
Fix signed/unsigned compare warning.
Diffstat (limited to 'node')
-rw-r--r--node/EthernetTap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/node/EthernetTap.cpp b/node/EthernetTap.cpp
index fadd8e50..44118c2a 100644
--- a/node/EthernetTap.cpp
+++ b/node/EthernetTap.cpp
@@ -693,7 +693,7 @@ void EthernetTap::threadMain()
// data until we have at least a frame.
r += n;
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;
for(int i=0;i<6;++i)
to.data[i] = (unsigned char)getBuf[i];