mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
Reverted last changes since it's wrong when sizeof(int)==2...
This commit is contained in:
parent
9f96f09652
commit
b0c61ffbb1
@ -952,7 +952,7 @@ do_writemore(struct netconn *conn)
|
|||||||
LWIP_ASSERT("conn->state == NETCONN_WRITE", (conn->state == NETCONN_WRITE));
|
LWIP_ASSERT("conn->state == NETCONN_WRITE", (conn->state == NETCONN_WRITE));
|
||||||
|
|
||||||
dataptr = (u8_t*)conn->write_msg->msg.w.dataptr + conn->write_offset;
|
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;
|
len = 0xffff;
|
||||||
#if LWIP_TCPIP_CORE_LOCKING
|
#if LWIP_TCPIP_CORE_LOCKING
|
||||||
conn->write_delayed = 1;
|
conn->write_delayed = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user