Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/dist/groff/src/roff/troff fix some operator precedence c...



details:   https://anonhg.NetBSD.org/src/rev/d222356521c4
branches:  trunk
changeset: 754628:d222356521c4
user:      drochner <drochner%NetBSD.org@localhost>
date:      Thu May 06 18:54:35 2010 +0000

description:
fix some operator precedence confusion (found by clang++)
Don't know whether this had a visible effect in practice, but the code
obviously didn't behave as expected.

diffstat:

 gnu/dist/groff/src/roff/troff/mtsm.cpp |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r 42084363fdba -r d222356521c4 gnu/dist/groff/src/roff/troff/mtsm.cpp
--- a/gnu/dist/groff/src/roff/troff/mtsm.cpp    Thu May 06 18:54:22 2010 +0000
+++ b/gnu/dist/groff/src/roff/troff/mtsm.cpp    Thu May 06 18:54:35 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mtsm.cpp,v 1.1.1.1 2006/02/06 18:14:11 wiz Exp $       */
+/*     $NetBSD: mtsm.cpp,v 1.2 2010/05/06 18:54:35 drochner Exp $      */
 
 // -*- C++ -*-
 /* Copyright (C) 2003, 2004 Free Software Foundation, Inc.
@@ -615,12 +615,12 @@
 
 int state_set::is_in(units_value_state u)
 {
-  return (unitsset & (1 << (int)u) != 0);
+  return ((unitsset & (1 << (int)u)) != 0);
 }
 
 int state_set::is_in(string_value_state s)
 {
-  return (stringset & (1 << (int)s) != 0);
+  return ((stringset & (1 << (int)s)) != 0);
 }
 
 void state_set::add(units_value_state, int n)



Home | Main Index | Thread Index | Old Index