Reverted last changes since it's wrong when sizeof(int)==2...

This commit is contained in:
goldsimon 2008-12-20 12:24:41 +00:00
parent 9f96f09652
commit b0c61ffbb1

View File

@ -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;