WIZNet W5500 with additional enhancements
Fork of WIZnetInterface by
Diff: Socket/UDPSocket.cpp
- Revision:
- 32:f6d76a55a50b
- Parent:
- 0:6f28332c466f
--- 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;
}
Helmut Tschemernjak
