gbranden pushed a commit to branch master
in repository groff.

commit dfc1b8fe33212b19a1abbfd09d019712b78df395
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Nov 16 17:17:19 2025 -0600

    [troff]: Fix code style nit.
    
    * src/roff/troff/input.cpp (hyphenation_patterns_file_code):
      Parenthesize formally complex expressions.
---
 ChangeLog                | 5 +++++
 src/roff/troff/input.cpp | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 9a9afdb1c..d2d13c6b2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2025-11-16  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/input.cpp (hyphenation_patterns_file_code): Fix
+       code style nit; parenthesize formally complex expressions.
+
 2025-11-16  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/env.cpp (line_spacing): Clarify diagnostic
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 6c128d525..780ab1263 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -8497,12 +8497,12 @@ void hyphenation_patterns_file_code()
   }
   while (!tok.is_newline() && !tok.is_eof()) {
     int n1, n2;
-    if (read_integer(&n1) && (0 <= n1 && n1 <= 255)) {
+    if (read_integer(&n1) && ((0 <= n1) && (n1 <= 255))) {
       if (!has_arg()) {
        error("missing output hyphenation code");
        break;
       }
-      if (read_integer(&n2) && (0 <= n2 && n2 <= 255)) {
+      if (read_integer(&n2) && ((0 <= n2) && (n2 <= 255))) {
        hpf_code_table[n1] = n2;
        tok.skip();
       }

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to