Module: wine Branch: master Commit: 9abde541b5b8bae1b240a3bfe6d6d133fcea59c9 URL: http://source.winehq.org/git/wine.git/?a=commit;h=9abde541b5b8bae1b240a3bfe6...
Author: Austin English austinenglish@gmail.com Date: Fri Jan 2 22:15:09 2009 -0600
mpr: Fix a compiler warning on PowerPC.
---
dlls/mpr/pwcache.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/mpr/pwcache.c b/dlls/mpr/pwcache.c index 8e3c191..0ed65b6 100644 --- a/dlls/mpr/pwcache.c +++ b/dlls/mpr/pwcache.c @@ -39,7 +39,7 @@ static inline BYTE hex( BYTE x ) return x + 'A' - 10; }
-static inline CHAR ctox( CHAR x ) +static inline signed char ctox( CHAR x ) { if( ( x >= '0' ) && ( x <= '9' ) ) return x - '0'; @@ -282,7 +282,7 @@ UINT WINAPI WNetEnumCachedPasswords( /* decode the value */ for(j=5; j<val_sz; j+=2 ) { - CHAR hi = ctox( val[j] ), lo = ctox( val[j+1] ); + signed char hi = ctox( val[j] ), lo = ctox( val[j+1] ); if( ( hi < 0 ) || ( lo < 0 ) ) break; val[(j-5)/2] = (hi<<4) | lo;