diff options
author | Pixel <pixel@nobis-crew.org> | 2009-06-06 18:51:43 +0000 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2009-06-06 18:51:43 +0000 |
commit | 65e8e62b7309e6c94a4262aa48b546f5e71dd7a8 (patch) | |
tree | 2537d968e1c6c7da7c03901614a31e33e66fc752 /lib | |
parent | 98f9f21a998eec7860da7b75a4e1b528a833b866 (diff) |
Fixing Base85 code.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Base85.cc | 10 |
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; |