mpr: Fix a compiler warning on PowerPC.

This commit is contained in:
Austin English 2009-01-02 22:15:09 -06:00 committed by Alexandre Julliard
parent 87af7e110f
commit 9abde541b5
1 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ static inline BYTE hex( BYTE x )
return x + 'A' - 10; return x + 'A' - 10;
} }
static inline CHAR ctox( CHAR x ) static inline signed char ctox( CHAR x )
{ {
if( ( x >= '0' ) && ( x <= '9' ) ) if( ( x >= '0' ) && ( x <= '9' ) )
return x - '0'; return x - '0';
@ -282,7 +282,7 @@ UINT WINAPI WNetEnumCachedPasswords(
/* decode the value */ /* decode the value */
for(j=5; j<val_sz; j+=2 ) 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 ) ) if( ( hi < 0 ) || ( lo < 0 ) )
break; break;
val[(j-5)/2] = (hi<<4) | lo; val[(j-5)/2] = (hi<<4) | lo;