mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-04 21:44:38 +08: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…
x
Reference in New Issue
Block a user