summaryrefslogtreecommitdiff
path: root/lib/Base85.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Base85.cc')
-rw-r--r--lib/Base85.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Base85.cc b/lib/Base85.cc
index d8722fb..c228022 100644
--- a/lib/Base85.cc
+++ b/lib/Base85.cc
@@ -85,11 +85,11 @@ int Base85::decode_block(char s1, char s2, char s3, char s4, char s5, unsigned c
sb4 = s4 - '!';
sb5 = s5 - '!';
- tuple = s5; tuple *= 85;
- tuple |= s4; tuple *= 85;
- tuple |= s3; tuple *= 85;
- tuple |= s2; tuple *= 85;
- tuple |= s1;
+ tuple = sb5; tuple *= 85;
+ tuple += sb4; tuple *= 85;
+ tuple += sb3; tuple *= 85;
+ tuple += sb2; tuple *= 85;
+ tuple += sb1;
out_tab[0] = tuple & 255; tuple >>= 8;
out_tab[1] = tuple & 255; tuple >>= 8;