Changeset 51791 in vbox
- Timestamp:
- Jul 1, 2014 8:33:39 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/string/base64.cpp
r51790 r51791 240 240 { 241 241 /* The first 6-bit group. */ 242 while ((u8 = g_au8CharToVal[ch = cchStringMax > 0 ? *pszString : 0]) == BASE64_SPACE)242 while ((u8 = g_au8CharToVal[ch = cchStringMax > 0 ? (uint8_t)*pszString : 0]) == BASE64_SPACE) 243 243 pszString++, cchStringMax--; 244 244 if (u8 >= 64) … … 252 252 253 253 /* The second 6-bit group. */ 254 while ((u8 = g_au8CharToVal[ch = cchStringMax > 0 ? *pszString : 0]) == BASE64_SPACE)254 while ((u8 = g_au8CharToVal[ch = cchStringMax > 0 ? (uint8_t)*pszString : 0]) == BASE64_SPACE) 255 255 pszString++, cchStringMax--; 256 256 if (u8 >= 64) … … 266 266 /* The third 6-bit group. */ 267 267 u8 = BASE64_INVALID; 268 while ((u8 = g_au8CharToVal[ch = cchStringMax > 0 ? *pszString : 0]) == BASE64_SPACE)268 while ((u8 = g_au8CharToVal[ch = cchStringMax > 0 ? (uint8_t)*pszString : 0]) == BASE64_SPACE) 269 269 pszString++, cchStringMax--; 270 270 if (u8 >= 64) … … 280 280 /* The fourth 6-bit group. */ 281 281 u8 = BASE64_INVALID; 282 while ((u8 = g_au8CharToVal[ch = cchStringMax > 0 ? *pszString : 0]) == BASE64_SPACE)282 while ((u8 = g_au8CharToVal[ch = cchStringMax > 0 ? (uint8_t)*pszString : 0]) == BASE64_SPACE) 283 283 pszString++, cchStringMax--; 284 284 if (u8 >= 64) … … 311 311 pszString++; 312 312 cchStringMax--; 313 while (cchStringMax > 0 && (ch = *pszString))313 while (cchStringMax > 0 && (ch = (uint8_t)*pszString)) 314 314 { 315 315 u8 = g_au8CharToVal[ch];
Note:
See TracChangeset
for help on using the changeset viewer.