fixed bug #5067 (essentialy a signed/unsigned warning fixed by casting to unsigned).

This commit is contained in:
goldsimon 2007-03-21 21:14:06 +00:00
parent 3eb38d7611
commit 776c01e60b
2 changed files with 5 additions and 1 deletions

View File

@ -71,6 +71,10 @@ HISTORY
++ Bug fixes:
2007-03-21 Simon Goldschmidt
* sockets.c: fixed bug #5067 (essentialy a signed/unsigned warning fixed
by casting to unsigned).
2007-03-21 Frédéric Bernon
* api_lib.c, api_msg.c, tcpip.c: integrate sys_mbox_fetch(conn->mbox, NULL) calls from
api_lib.c to tcpip.c's tcpip_apimsg(). Now, use a local variable and not a

View File

@ -94,7 +94,7 @@ static int err_to_errno_table[] = {
(sizeof(err_to_errno_table)/sizeof(err_to_errno_table[0]))
#define err_to_errno(err) \
(-(err) >= 0 && -(err) < ERR_TO_ERRNO_TABLE_SIZE ? \
((unsigned)(-(err)) < ERR_TO_ERRNO_TABLE_SIZE ? \
err_to_errno_table[-(err)] : EIO)
#ifdef ERRNO