[llvm] r202210 - Simplify base64 routine a bit.
Rui Ueyama
ruiu at google.com
Tue Feb 25 15:49:12 PST 2014
Author: ruiu
Date: Tue Feb 25 17:49:11 2014
New Revision: 202210
URL: http://llvm.org/viewvc/llvm-project?rev=202210&view=rev
Log:
Simplify base64 routine a bit.
Modified:
llvm/trunk/lib/Object/COFFObjectFile.cpp
Modified: llvm/trunk/lib/Object/COFFObjectFile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/COFFObjectFile.cpp?rev=202210&r1=202209&r2=202210&view=diff
==============================================================================
--- llvm/trunk/lib/Object/COFFObjectFile.cpp (original)
+++ llvm/trunk/lib/Object/COFFObjectFile.cpp Tue Feb 25 17:49:11 2014
@@ -70,9 +70,9 @@ static bool decodeBase64StringEntry(Stri
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;
More information about the llvm-commits
mailing list