minor: fixed compiler warning "unary minus operator is applied to an unsigned expression"

This commit is contained in:
goldsimon 2016-02-26 15:23:04 +01:00
parent 97b7555119
commit 81c8121551

View File

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