1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 18:42:46 +02:00

Simplify base64 routine a bit.

llvm-svn: 202210
This commit is contained in:
Rui Ueyama 2014-02-25 23:49:11 +00:00
parent 6d94e5bcf9
commit 1d9299ea89

View File

@ -70,9 +70,9 @@ static bool decodeBase64StringEntry(StringRef Str, uint32_t &Result) {
else if (Str[0] >= '0' && Str[0] <= '9') // 52..61
CharVal = Str[0] - '0' + 52;
else if (Str[0] == '+') // 62
CharVal = Str[0] - '+' + 62;
CharVal = 62;
else if (Str[0] == '/') // 63
CharVal = Str[0] - '/' + 63;
CharVal = 63;
else
return true;