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

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