Browse Source

Fix signed/unsigned compare warning.

Adam Ierymenko 11 years ago
parent
commit
d5fdfaea56
1 changed files with 1 additions and 1 deletions
  1. 1 1
      node/EthernetTap.cpp

+ 1 - 1
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];