summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2017-07-28 14:24:18 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2017-07-28 14:24:18 +0000
commit231f1664eb3c58dc737d1f2b8bdc2b796f7fcb09 (patch)
treee9b56f3b743997309294ca3da73554ec32cd1e77 /usr.bin
parent9e7504cc2c94290334263f0fe81dfa02fb6acfe4 (diff)
use & to check if a bit is set in a flag; pointed out by clang
OK schwarze
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/mandoc/term.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/term.c b/usr.bin/mandoc/term.c
index 0970f6835b0..239865f09b1 100644
--- a/usr.bin/mandoc/term.c
+++ b/usr.bin/mandoc/term.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: term.c,v 1.133 2017/06/14 23:23:51 schwarze Exp $ */
+/* $OpenBSD: term.c,v 1.134 2017/07/28 14:24:17 florian Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -127,7 +127,7 @@ term_flushln(struct termp *p)
p->maxrmargin - p->viscol - vbl : 0;
vis = vend = 0;
- if ((p->flags && TERMP_MULTICOL) == 0)
+ if ((p->flags & TERMP_MULTICOL) == 0)
p->tcol->col = 0;
while (p->tcol->col < p->tcol->lastcol) {