mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-04 23:29:25 +00:00
sockets.c: fixed assert check after changing type of sock->select_waiting to unsigned
This commit is contained in:
parent
5d74d97fe1
commit
a883fe7b8e
@ -1265,8 +1265,8 @@ lwip_select(int maxfdp1, fd_set *readset, fd_set *writeset, fd_set *exceptset,
|
||||
struct lwip_sock *sock = tryget_socket(i);
|
||||
LWIP_ASSERT("sock != NULL", sock != NULL);
|
||||
SYS_ARCH_PROTECT(lev);
|
||||
LWIP_ASSERT("sock->select_waiting > 0", sock->select_waiting > 0);
|
||||
sock->select_waiting--;
|
||||
LWIP_ASSERT("sock->select_waiting >= 0", sock->select_waiting >= 0);
|
||||
SYS_ARCH_UNPROTECT(lev);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user