From 65e8e62b7309e6c94a4262aa48b546f5e71dd7a8 Mon Sep 17 00:00:00 2001 From: Pixel Date: Sat, 6 Jun 2009 18:51:43 +0000 Subject: Fixing Base85 code. --- lib/Base85.cc | 10 +++++----- 1 file 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; -- cgit v1.2.3