projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
95e9730
)
Simplify base64 routine a bit.
author
Rui Ueyama
<ruiu@google.com>
Tue, 25 Feb 2014 23:49:11 +0000
(23:49 +0000)
committer
Rui Ueyama
<ruiu@google.com>
Tue, 25 Feb 2014 23:49:11 +0000
(23:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202210
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Object/COFFObjectFile.cpp
patch
|
blob
|
history
diff --git
a/lib/Object/COFFObjectFile.cpp
b/lib/Object/COFFObjectFile.cpp
index 415b4cb0c101083c33644165ba8146fdf18e8f69..41d21eed13931e7baa83e226d109e2c761ef3648 100644
(file)
--- a/
lib/Object/COFFObjectFile.cpp
+++ b/
lib/Object/COFFObjectFile.cpp
@@
-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;