mpr: Fix a compiler warning on PowerPC.
authorAustin English <austinenglish@gmail.com>
Sat, 3 Jan 2009 04:15:09 +0000 (22:15 -0600)
committerAlexandre Julliard <julliard@winehq.org>
Sat, 3 Jan 2009 13:55:31 +0000 (14:55 +0100)
dlls/mpr/pwcache.c

index 8e3c1911f1fd0ce5d8217d0d4a8e68e969cb1366..0ed65b66ac40495e7ed151b795916b8147c001d0 100644 (file)
@@ -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;