summaryrefslogtreecommitdiff
path: root/usr.bin/vis/foldit.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-12 22:51:19 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-12 22:51:19 +0000
commit648664cd5c9e9dbcc577e8f114dd3fbe88258d59 (patch)
tree7d7dfe9ea2e4cc73c388a2f6b77964edf35d35c4 /usr.bin/vis/foldit.c
parent794a07d7dc59b8439136020523964f025ccd2ab5 (diff)
clarify a simple expression
Diffstat (limited to 'usr.bin/vis/foldit.c')
-rw-r--r--usr.bin/vis/foldit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/vis/foldit.c b/usr.bin/vis/foldit.c
index 5ae3f863695..f9abd9963f2 100644
--- a/usr.bin/vis/foldit.c
+++ b/usr.bin/vis/foldit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: foldit.c,v 1.6 2013/11/12 13:54:51 deraadt Exp $ */
+/* $OpenBSD: foldit.c,v 1.7 2013/11/12 22:51:18 deraadt Exp $ */
/* $NetBSD: foldit.c,v 1.4 1994/12/20 16:13:02 jtc Exp $ */
/*-
@@ -52,7 +52,7 @@ again:
col = 0;
break;
case '\t':
- col = col + 8 &~ 07;
+ col = (col + 8) & ~07;
break;
case '\b':
col = col ? col - 1 : 0;