Helmut Tschemernjak / WIZnetInterface

Fork of WIZnetInterface by WIZnet

Revision:
32:f6d76a55a50b
Parent:
0:6f28332c466f
diff -r a3fbfa5c8351 -r f6d76a55a50b Socket/UDPSocket.cpp
--- a/Socket/UDPSocket.cpp	Sat Oct 07 15:08:58 2017 +0200
+++ b/Socket/UDPSocket.cpp	Sat Oct 07 16:26:55 2017 +0200
@@ -79,7 +79,7 @@
     readEndpoint(remote, info);
     int udp_size = info[6]<<8|info[7];
     //TEST_ASSERT(udp_size <= (size-sizeof(info)));
-    if (udp_size > (size-sizeof(info))) {
+    if (udp_size > (int)(size-sizeof(info))) {
         return -1;
     }