summaryrefslogtreecommitdiffstats
path: root/usr.bin/uuencode/uuencode.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/uuencode/uuencode.c')
-rw-r--r--usr.bin/uuencode/uuencode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/uuencode/uuencode.c b/usr.bin/uuencode/uuencode.c
index e8696e9..d91222a 100644
--- a/usr.bin/uuencode/uuencode.c
+++ b/usr.bin/uuencode/uuencode.c
@@ -120,11 +120,11 @@ encode()
ch = ENC(ch);
if (putchar(ch) == EOF)
break;
- ch = (*p << 4) & 060 | (p[1] >> 4) & 017;
+ ch = ((*p << 4) & 060) | ((p[1] >> 4) & 017);
ch = ENC(ch);
if (putchar(ch) == EOF)
break;
- ch = (p[1] << 2) & 074 | (p[2] >> 6) & 03;
+ ch = ((p[1] << 2) & 074) | ((p[2] >> 6) & 03);
ch = ENC(ch);
if (putchar(ch) == EOF)
break;
OpenPOWER on IntegriCloud