hunk[4] = '\0';
while (len > 2) {
hunk[0] = uuemap[(077 & (*s >> 2))];
- hunk[1] = uuemap[(077 & ((*s << 4) & 060 | (s[1] >> 4) & 017))];
- hunk[2] = uuemap[(077 & ((s[1] << 2) & 074 | (s[2] >> 6) & 03))];
+ hunk[1] = uuemap[(077 & (((*s << 4) & 060) | ((s[1] >> 4) & 017)))];
+ hunk[2] = uuemap[(077 & (((s[1] << 2) & 074) | ((s[2] >> 6) & 03)))];
hunk[3] = uuemap[(077 & (s[2] & 077))];
sv_catpvn(sv, hunk, 4);
s += 3;
if (len > 0) {
char r = (len > 1 ? s[1] : '\0');
hunk[0] = uuemap[(077 & (*s >> 2))];
- hunk[1] = uuemap[(077 & ((*s << 4) & 060 | (r >> 4) & 017))];
+ hunk[1] = uuemap[(077 & (((*s << 4) & 060) | ((r >> 4) & 017)))];
hunk[2] = uuemap[(077 & ((r << 2) & 074))];
hunk[3] = uuemap[0];
sv_catpvn(sv, hunk, 4);