summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2002-08-08 14:01:12 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2002-08-08 14:01:12 +0000
commit11b60a9a4291ba3d72c9a0046addf6f9f5e9a883 (patch)
tree74eb0d657c1eeaf12f1e3e254cbfddb40901f203
parentce784ec239d2f9ed35c9396fdd1ea4c97eff1ee8 (diff)
Use & to test if bits are set, not &&; art@ ok. Fix sent to bug-groff@gnu.org
and the groff maintainers.
-rw-r--r--gnu/usr.bin/groff/pic/object.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/groff/pic/object.cc b/gnu/usr.bin/groff/pic/object.cc
index 860e1bc6453..b5ff195daed 100644
--- a/gnu/usr.bin/groff/pic/object.cc
+++ b/gnu/usr.bin/groff/pic/object.cc
@@ -1098,7 +1098,7 @@ graphic_object *object_spec::make_move(position *curpos, direction *dirp)
// No need to look at at since `at' attribute sets `from' attribute.
position startpos = (flags & HAS_FROM) ? from : *curpos;
if (!(flags & HAS_SEGMENT)) {
- if ((flags && IS_SAME) && have_last_move)
+ if ((flags & IS_SAME) && have_last_move)
segment_pos = last_move;
else {
switch (dir) {