mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-28 09:19:53 +00:00
minor: fixed compiler warning "unary minus operator is applied to an unsigned expression"
This commit is contained in:
parent
97b7555119
commit
81c8121551
@ -308,8 +308,8 @@ static const int err_to_errno_table[] = {
|
||||
#define ERR_TO_ERRNO_TABLE_SIZE LWIP_ARRAYSIZE(err_to_errno_table)
|
||||
|
||||
#define err_to_errno(err) \
|
||||
((unsigned)(-(err)) < ERR_TO_ERRNO_TABLE_SIZE ? \
|
||||
err_to_errno_table[-(err)] : EIO)
|
||||
((unsigned)(-(signed)(err)) < ERR_TO_ERRNO_TABLE_SIZE ? \
|
||||
err_to_errno_table[-(signed)(err)] : EIO)
|
||||
|
||||
#if LWIP_SOCKET_SET_ERRNO
|
||||
#ifndef set_errno
|
||||
|
Loading…
Reference in New Issue
Block a user