gbranden pushed a commit to branch master
in repository groff.

commit 93c2e43b2f86b0051b9d3a90e98f50f89dc1dae1
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Apr 13 09:14:30 2026 -0500

    src/roff/troff/node.cpp: Fix code style nits.
    
    * src/roff/troff/node.cpp (is_abstract_style): Return Boolean instead of
      integer literal from this function returning `bool`.  Parenthesize
      formally complex expression.
---
 ChangeLog               | 7 +++++++
 src/roff/troff/node.cpp | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index fd096d138..e55c7501b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2026-04-13  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/node.cpp (is_abstract_style): Fix code style
+       nits.  Return Boolean instead of integer literal from this
+       function returning `bool`.  Parenthesize formally complex
+       expression.
+
 2026-04-13  G. Branden Robinson <[email protected]>
 
        [troff]: Trivially refactor.  Rename `is_font_name()` to
diff --git a/src/roff/troff/node.cpp b/src/roff/troff/node.cpp
index 5ec540b70..de79e2ab4 100644
--- a/src/roff/troff/node.cpp
+++ b/src/roff/troff/node.cpp
@@ -6755,7 +6755,7 @@ bool is_font_available(symbol fam, symbol name)
 bool is_abstract_style(symbol s)
 {
   int i = symbol_fontno(s);
-  return i < 0 ? 0 : font_table[i]->is_style();
+  return (i < 0) ? false : font_table[i]->is_style();
 }
 
 bool mount_style(int n, symbol name)

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

Reply via email to