From b0c61ffbb1471a3b91c621b635cef728d9f0ad26 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Sat, 20 Dec 2008 12:24:41 +0000 Subject: [PATCH] Reverted last changes since it's wrong when sizeof(int)==2... --- src/api/api_msg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/api_msg.c b/src/api/api_msg.c index ce4b5bcb..7557c68a 100644 --- a/src/api/api_msg.c +++ b/src/api/api_msg.c @@ -952,7 +952,7 @@ do_writemore(struct netconn *conn) LWIP_ASSERT("conn->state == NETCONN_WRITE", (conn->state == NETCONN_WRITE)); dataptr = (u8_t*)conn->write_msg->msg.w.dataptr + conn->write_offset; - if ((conn->write_msg->msg.w.len - conn->write_offset > (int)0xffff)) { /* max_u16_t */ + if (conn->write_msg->msg.w.len - conn->write_offset > 0xffff) { /* max_u16_t */ len = 0xffff; #if LWIP_TCPIP_CORE_LOCKING conn->write_delayed = 1;